Dim answer As Integer
Dim startNumber As Integer
Dim startNumber As Integer
answer = 0
For startNumber = 1 To 4
answer = answer + startNumber
Next startNumber
MsgBox answer
Run the program, and see what happens when you click the button. The number 10 should have been displayed in your message box.
No comments:
Post a Comment