I have given Code which works Fine with Command Button,
Can i use this on Change Event of Multiple Custom/Selected TextBoxes on UserForm.
Can i use this on Change Event of Multiple Custom/Selected TextBoxes on UserForm.
Code:
[COLOR=#333333]Private Sub CommandButton1_Click()[/COLOR] Dim i As Integer
With Me
For i = 1 To 2
.Controls("TxtSale" & i).Text = Val(.Controls("TxtCost" & i).Text) * Val(.Controls("TxtRate" & i).Text)
Next i
End With [COLOR=#333333]End Sub[/COLOR]