option button problem

  • Thread starter Thread starter THIRDCOAST
  • Start date Start date
T

THIRDCOAST

I have a spread sheet that I want to place an "option button" in a cell, so
that when that "option button" is clicked it will give me a number in another
cell. Can anyone give me an easy version of how to do this? Thank you in
advance for your assistance.
 
Hi there

I'm not really sure what you are asking to do but if you put the code
below into the module for your worksheet it might give you a better
idea of the code.

Private Sub OptionButton1_Click()

If OptionButton1 = True Then

MsgBox [A25].Value

End If

End Sub

Private Sub OptionButton2_Click()

If OptionButton2 = True Then

MsgBox [A26].Value

End If

End Sub

Private Sub OptionButton3_Click()

If OptionButton3 = True Then

MsgBox [A27].Value

End If

End Sub

hope this helps

Steve
 

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