Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50121

ActiveX OptionButtons VBA

$
0
0
Hello group,
First post!

I am looking for a way to use 2 optionbuttons in vba.
The option buttons are in different groups, and are independent.

I cannot get this to work. Is this even possible?
In sheet1, the vba would read something like this.

Code:

Private Sub OptionButton1_Click()
If OptionButton1.Value = true And OptionButton2.Value = True Then
Range("A1") = "Good"
End If
End Sub

Thanks,
Kyp

Viewing all articles
Browse latest Browse all 50121