Is it possible to do the following:
Private Sub CommandButton1_Click()
For i = 1 To 3
TextBox18 = Val(TextBox18) + Val(TextBox & i)
Next
End Sub
The end result should be the accumulated amount from the value in Textbox1, Textbox2 and Textbox3. If the values in each of the three textboxes previously mentioned are zero the end result is 6. This is the result of the “For i 1 To 3” it is adding the 1, 2 and 3 to get 6. I’ve tried other code but can not get it to do what I want.
Your assistance is appreciated.
John