optionbuttons

P

Phil Perry

Is there a code that will clear all checked optionbuttons
to unchecked, without having to list them all?
Also with vbYesNo how do you bring up No as the
highlighted option, not Yes.
Finally,as I have set the required toolbars, is there a
way to stop a user from minimising windows on the taskbar
and then maximising the window as it re-appears with a
different set of toolbars.

Thanks for your help with this; I think I've cracked
the project once I've got this. Thanks again.
 
T

Tom Ogilvy

for control toolbox toolbar buttons on a worksheet


for each oleObj in ActiveSheet.OleObjects
if typeof oleObj.Object is MSforms.OptionButton then
oleObj.Object.Value = False
End if
Next

-------

msgbox "Yes or No", vbDefaultButton2+vbYesNo

-------

I don't have a pat answer for the last.

Regards,
Tom Ogilvy
 

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