Excel - option button in cell

K

Kath

Hello,

This may be a really simple one but does anyone know how to access the value
of an option button, given the cell reference?

Thank you!

Kath
 
A

ag

Hi Kath,

You could try something like this:

Create your optionbutton, then in the optionbutton_change, type the
following:

Private Sub OptionButton1_Change()
Range("A1").Value = OptionButton1
Range("A2").Value = OptionButton2
End Sub

This will output the values to some cells, you could then maybe hide the
column showing the cells if you didn't want them seen, then you could
reference the cells

Hope this helps

Regards

Andy Gallagher
 

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

Top