excel vba - IF option button selected Then...

C

chief

Basically, what will happen is they click the save/print commanbutton o
the sheet, this brings up a userform asking them yes or no, what wil
now happen is when they click on either yes or no commandbuttons,
want a code to recognize if one of the four option buttons on the shee
has been selected, if one has been selected it will run its course. I
not, it will close the save/print userform and select cell "K5" fo
example whereby they can choose an option button and move on.

What would be the selection recognition code that i could store in m
save/print userform?

thank
 
G

Guest

something like this:
if option button1 = true or option button2 = true or
option button3 = true or option button4 = true then
run it's cource
else
unload me
range("K5").select
 
Top