In my UserForm I have a number TextBoxes and ComboBoxes and I am trying to get 2 TextBoxes to sum values
A – [txtQty] Quantity entered by user
B – [cmbMarkUp] Mark Up chosen by User
C – [txtPrice] Unit Price added by code
D – [txtMarkUp] Code below
E – [txtTotal] Code below
For D & E, I added the following code but get the Error 13 - Type mismatch error
Any ideas??
Many thanks
A – [txtQty] Quantity entered by user
B – [cmbMarkUp] Mark Up chosen by User
C – [txtPrice] Unit Price added by code
D – [txtMarkUp] Code below
E – [txtTotal] Code below
For D & E, I added the following code but get the Error 13 - Type mismatch error
Code:
Private Sub cmbMarkUp_Change()
txtMarkUp.Value = txtPrice.Value * (1 + cmbMarkUp.Value)
txtTotal.Value = txtPrice.Value * txtQty
End Sub
Any ideas??
Many thanks