Get optionbutton status

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you you determine an optionbuttoms status from code? i.e. Is it true or fals

Bruce
 
Hi Bruce

Sub test()
With ActiveSheet.DrawingObjects("Option Button 2")
If .Value = 1 Then
MsgBox "Its true"
Else
MsgBox "Its false"
End If
End With
End Sub

--
XL2002
Regards

William

(e-mail address removed)

| How do you you determine an optionbuttoms status from code? i.e. Is it
true or false
|
| Bruce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top