I have two buttons on my sheet.
I just created text boxes.... one has the text yellow4 and then other one green3.
I want this assigned to yellow4.
Sub Count()
Dim x As Integer
x = Range("A1").Value
Range("A1").Value = x + 1
x = Range("B1").Value
Range("B1").Value = x + 1
x = Range("C1").Value
Range("C1").Value = 0
End Sub
and this assigned to green3
Sub Count()
Dim x As Integer
x = Range("A1").Value
Range("A1").Value = 0
x = Range("B1").Value
Range("B1").Value = x + 1
x = Range("C1").Value
Range("C1").Value = x +1
End Sub
how do I put those together so that the right code goes to the right text box.
Bookmarks