Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i have an option button on my worksheet to protect/unprotect all sheets.
when a different/nonrelated macro is run i want it automatically select the "protect" option button (OptionButton1) when it is finished. this has to be simple but i just cannot figure it out. any ideas? thanks for your help! -josh |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't think you need to select the button itself, but what you can do is
call at the end of the unrelated macro the execution of the code to protect/unprotect sheets Call ProtectSheet -- If this posting was helpful, please click on the Yes button. Regards, Michael Arch. "JoshC" wrote: i have an option button on my worksheet to protect/unprotect all sheets. when a different/nonrelated macro is run i want it automatically select the "protect" option button (OptionButton1) when it is finished. this has to be simple but i just cannot figure it out. any ideas? thanks for your help! -josh |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Josh,
Turning on an ActiveX option button:- Sheets("Sheet1").OptionButton1.Value = True Turning on a Forms option button:- Sheets("Sheet1").OptionButtons("Option Button 2") = True Regards, OssieMac "JoshC" wrote: i have an option button on my worksheet to protect/unprotect all sheets. when a different/nonrelated macro is run i want it automatically select the "protect" option button (OptionButton1) when it is finished. this has to be simple but i just cannot figure it out. any ideas? thanks for your help! -josh |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks Ossie, i need to turn on the button for the sake of others using the
worksheet and this works wonderfully! "OssieMac" wrote: Hi Josh, Turning on an ActiveX option button:- Sheets("Sheet1").OptionButton1.Value = True Turning on a Forms option button:- Sheets("Sheet1").OptionButtons("Option Button 2") = True Regards, OssieMac "JoshC" wrote: i have an option button on my worksheet to protect/unprotect all sheets. when a different/nonrelated macro is run i want it automatically select the "protect" option button (OptionButton1) when it is finished. this has to be simple but i just cannot figure it out. any ideas? thanks for your help! -josh |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
option button and userform question | Excel Programming | |||
need help on how to grey out one option button in one group box based on the selection of another option button in another group box | Excel Programming | |||
Excel VBA option button question | Excel Programming | |||
VBA Option Button question | Excel Programming | |||
keep source formatting is not an option in paste option button | Excel Discussion (Misc queries) |