私はExcel VBAの請求書アーカイブ/トラッカーフォームを自分の作品にコーディングしようとしています。どんな助けでも大歓迎です。基本的に、私は自分のユーザーフォームにボトムテーブルの請求日を入力し、選択した部品の合計(A1-A19)を入力して、入力請求日付の最も近い空のセルに合計を入力します。それが最初の請求サイクルであれば、総額取引でドル金額を呼び出して、その金額を入力請求日の右側に置くだけです。添付されているのは、Excelシートのスニペット、およびuserformです。本当にありがとうコミュニティ!Excel VBA課金ユーザーフォームの入力データの質問
'Creates "LastRow" variable
If Range("D47").Value = "" Then
LastRow = 47
Else
Main.Range("D46").Select
LastRow = Selection.End(xlDown).Row
End If
i = 47
Do While i <= LastRow
If BillingDate.Value = Range("D" & i).Value Then
If CmBBill.Value = "Yes" Then
'Range("D" & i).Offset('resume from here and figure it out, but I want to choose the nearest empty cell to the right of date
'Input project specific information (i.e. the sum of the parts that need to be billed)
Else
i = i + 1
End If
Loop
Cells(LastRow + 1, 4).Value = BillingDate.Value 'Inputs Billing Date
'2. Choose column of ProjectToBill based on value in textbox
Main.Range("E5").Select
LastCol = Selection.End(xlToRight).Column
ノートを始める必要があります。それに応じて調整する –