Hello - A userform has two controls: textbox1 and command button 2. When the button is clicked +1 is added to textbox 1. Each time the command button is pressed +1 added to textbox1.
I tried this but it doesn't work. What am I missing?
Private Sub CommandButton2_Click()
Me.TextBox1.Value = Me.TextBox1.Value + 1
End Sub
Conversely, another commandbutton3 when click will -1 the same textbox1. Will the code be the same as the above except for a -1? If I don't want any negative integers and only show zero, how is this coded?
Thanks,
Gal403
Moderator Note:
Pls use code tags around your code next time as per forum rules.
Bookmarks