Hi,
I've added some VBA code to update a cell value when an option button is clicked. The option button is part of a group, all events occur on the same worksheet. My code below:
I've repeated this code for all 5 option buttons and it works OK.
On another worksheet, I'd like a cell value to be updated with the contents of a cell, when the option button click is TRUE.
E.g.
Sheet 1
Click Option Button 2
Cell ref A2 changes to show rating 2
On worksheet 2
Cell ref changes to show contents of Sheet 1, cell ref C1
Do I add the event on the sheet where the option button is, if so how? Or, add VBA code on the sheet where I want the text string to be displayed and reference the button click?
Many thanks
JM
I've added some VBA code to update a cell value when an option button is clicked. The option button is part of a group, all events occur on the same worksheet. My code below:
Code:
Private Sub OptionButton1_Click()
Range("A2") = "1"
End Sub
I've repeated this code for all 5 option buttons and it works OK.
On another worksheet, I'd like a cell value to be updated with the contents of a cell, when the option button click is TRUE.
E.g.
Sheet 1
Click Option Button 2
Cell ref A2 changes to show rating 2
On worksheet 2
Cell ref changes to show contents of Sheet 1, cell ref C1
Do I add the event on the sheet where the option button is, if so how? Or, add VBA code on the sheet where I want the text string to be displayed and reference the button click?
Many thanks
JM