spitfire184
Technical User
Hello.
Not entirely sure this is the right forum to post this in, apologies if it isn't.
I'm in a situation in Excel whereby I wish to have questions with option buttons. Upon clicking a 'save' button, a VB script is executed which checks which option buttons are selected and adds a 1 to the value of a cell on another sheet.
Here is my code:
I suppose it looks naive, I'm not very experienced, but I have searched extensively and tried other solutions.
The code produces this error:
I would greatly appreciate any assistance leading to the resolution of this problem. Thanks.
Not entirely sure this is the right forum to post this in, apologies if it isn't.
I'm in a situation in Excel whereby I wish to have questions with option buttons. Upon clicking a 'save' button, a VB script is executed which checks which option buttons are selected and adds a 1 to the value of a cell on another sheet.
Here is my code:
Code:
Sub Button2_Click()
If OptionButton1.Value = True Then
Sheet2.Cells(3, 2).Value = Sheet3.Cells(3, 2).Value + 1
End If
End Sub
I suppose it looks naive, I'm not very experienced, but I have searched extensively and tried other solutions.
The code produces this error:
Code:
Run-time error '424':
Object required
I would greatly appreciate any assistance leading to the resolution of this problem. Thanks.