I've got a userform that keeps track of fee waivers, and for each different type of fee there are four textboxes: one textbox each for the amount paid and the amount waived (whose values are pulled from separate worksheets), one textbox to identify the officer who waived the fees, and finally one textbox that is intended to sum the values of the paid and waived textboxes.
I've never worked with calculated fields in userforms, so I'm having trouble. Can somebody help me figure out what I'm doing wrong?
Any help is greatly appreciated!!
I've never worked with calculated fields in userforms, so I'm having trouble. Can somebody help me figure out what I'm doing wrong?
Code:
Dim inputRow As Integer
Dim dataRow As Integer
Dim Due As Double
inputRow = ActiveCell.Row
dataRow = inputRow - 5
txtReconPaid.Value = Format(Sheets("Input").Range("L" & inputRow).Value, "#,##0.00")
txtReconWaived.Value = Format(Sheets("Data").Range("X" & dataRow).Value, "#,##0.00")
txtReconIn.Value = Sheets("Data").Range("Z" & dataRow).Value
Due = txtReconPaid.Value + txtReconWaived.Value
txtReconDue.Value = Format(Sheets("Data").Range("W" & dataRow).Value, "#,##0.00")
Any help is greatly appreciated!!