Hello EveryOne!
In my UserForm I am trying to add 2 TextBoxes...
When ComboBox changes the "TextBoxMonthlyFee" automatically shows comboBox value.Which is Fine.
I want to add "TextBoxMonthlyFee" and "TextBoxAddmissionFee" and fill their value in "TextBoxTotalFee"
TextBoxTotalFee = TextBoxMonthlyFee + TextBoxAddmissionFee
Here is my code
Please Help..
Thank You
In my UserForm I am trying to add 2 TextBoxes...
When ComboBox changes the "TextBoxMonthlyFee" automatically shows comboBox value.Which is Fine.
I want to add "TextBoxMonthlyFee" and "TextBoxAddmissionFee" and fill their value in "TextBoxTotalFee"
TextBoxTotalFee = TextBoxMonthlyFee + TextBoxAddmissionFee
Here is my code
Code:
Private Sub ComboBoxClass_Change()
TextBoxMonthlylFee.Value = Application.VLookup(Me.ComboBoxClass.Value, Range("M1:N5"), 2, 0)
End Sub
Private Sub TextBoxMonthlyFee_Change()
If TextBoxMonthlyFee.Value = "" Then Exit Sub
If TextBoxAddmissionFee.Value = "" Then Exit Sub
TextBoxTotalFee.Value = Val(TextBoxAddmissionFee.Value) + Val(TextBoxMonthlyFee.Value)
Exit Sub
End Sub
Private Sub TextBoxAddmissionFee_Change()
If TextBoxMonthlyFee.Value = "" Then Exit Sub
If TextBoxAddmissionFee.Value = "" Then Exit Sub
TextBoxTotalFee.Value = Val(TextBoxAddmissionFee.Value) + Val(TextBoxMonthlyFee.Value)
Exit Sub
End Sub
Please Help..
Thank You