ray88’s diary

お仕事で困ったとき用の自分用の覚書

2023-08-03から1日間の記事一覧

VBA 税込み金額から消費税を抽出する部品

ExcelVBA 目次 - ray88’s diary Function ExtractTax(totalAmount As Double, taxRate As Double, roundUp As Boolean) As Double ' 税抜き金額を計算します Dim taxExcludedAmount As Double taxExcludedAmount = totalAmount / (1 + taxRate / 100) ' 税金…