Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jul 9, 5:32 am, Dave Peterson wrote:
If you know the names of the optionbuttons (from the Control toolbox toolbar, right?): With Worksheets("sheet1") .OptionButton1.Value = False .OptionButton2.Value = False .OptionButton3.Value = False End With Thanks to Dave Peterson, this works great. From any other sheet, I can change the OptionButton's true/false status on sheet1. I have multiple sheets (over 10) with the same three button, same names. I am trying to step through each sheet and change them to the same true/ false status. I have the following "Sub Workbook_UnHide()" that steps through all the sheets. I spliced....I failed. All I managed is a stack overflow. Is there a better way to do this? Sub Workbook_UnHide() Dim s As Integer Application.ScreenUpdating = False For s = 2 To ActiveWorkbook.Worksheets.Count ActiveWorkbook.Worksheets(s).Visible = True Next s ActiveWorkbook.Worksheets(1).Visible = False Application.ScreenUpdating = True 'Application.EnableEvents = True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu | Excel Discussion (Misc queries) | |||
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu | Excel Programming | |||
Change isAddin to false or true | Excel Programming | |||
TRUE/FALSE BOX not activating a WS change | Excel Discussion (Misc queries) | |||
Change optionbutton to true for good | Excel Programming |