I have been asked to set up a spreadsheet with buttons with six different values.
Every time a button is clicked then dropping value in cell.
I created six buttons (CommandButton1_Click, CommandButton2_Click, CommandButton3_Click..CommandButton6_Click)
Button one should have a value of 0.0
Button two should have a value of 0.1
Button three should have a value of 0.2
Button four should have a value of 0.3
Button five should have a value of 0.4
Button six should have a value of 0.5
When clicking on a button the right value is added in my spreadsheet
I need to have a feature in each button that when clicked, then go to next row.
All I have so far:
Private Sub CommandButton1_Click()
Range("b2") = Range("b2") + 0
End Sub
Private Sub CommandButton2_Click()
Range("b2") = Range("b2") + 1 / 10
End Sub
Private Sub CommandButton3_Click()
Range("b2") = Range("b2") + 2 / 10
End Sub
Private Sub CommandButton4_Click()
Range("b2") = Range("b2") + 3 / 10
End Sub
Private Sub CommandButton5_Click()
Range("b2") = Range("b2") + 4 / 10
End Sub
Private Sub CommandButton6_Click()
Range("b2") = Range("b2") + 5 / 10
End Sub
This only adds the value in cell b2.
I would like if all six buttons are pressed that my spreadsheet from B2 to B7 is valued: 0.0, 0.1, 0.2, 0.3, 0.4 & 0.5 and not just 1.5 in cell B2.