Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sub ToggleHidingColA() ' TOGGLE BETWEEN HIDING AND UNHIDING ROWS Rows ("10:32").Hidden = Not (Rows("10:32").Hidden) End Sub The above code allows a macro button to toggle Hide/Unhide of Rows 10 to 32 incl. If Rows 10 to 32 are indentified with a Named Range of 'Level01', how is the above code ammended to show the Named Range not the row numbers??? This must be simple, but I'm missing it somewhere!!!! -- thunderfoot ------------------------------------------------------------------------ thunderfoot's Profile: http://www.excelforum.com/member.php...o&userid=17341 View this thread: http://www.excelforum.com/showthread...hreadid=470808 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub ToggleHidingColA()
' TOGGLE BETWEEN HIDING AND UNHIDING ROWS Range("Level01").EntireRow.Hidden = _ Not (Range("Level01").EntireRow.Hidden) End Sub -- Regards, Tom Ogilvy "thunderfoot" wrote in message ... Sub ToggleHidingColA() ' TOGGLE BETWEEN HIDING AND UNHIDING ROWS Rows ("10:32").Hidden = Not (Rows("10:32").Hidden) End Sub The above code allows a macro button to toggle Hide/Unhide of Rows 10 to 32 incl. If Rows 10 to 32 are indentified with a Named Range of 'Level01', how is the above code ammended to show the Named Range not the row numbers??? This must be simple, but I'm missing it somewhere!!!! -- thunderfoot ------------------------------------------------------------------------ thunderfoot's Profile: http://www.excelforum.com/member.php...o&userid=17341 View this thread: http://www.excelforum.com/showthread...hreadid=470808 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Won't this work?
Range("level01").Rows.Hidden = Not (Range("level01").Rows.Hidden) Bob L. "thunderfoot" wrote in message ... Sub ToggleHidingColA() ' TOGGLE BETWEEN HIDING AND UNHIDING ROWS Rows ("10:32").Hidden = Not (Rows("10:32").Hidden) End Sub The above code allows a macro button to toggle Hide/Unhide of Rows 10 to 32 incl. If Rows 10 to 32 are indentified with a Named Range of 'Level01', how is the above code ammended to show the Named Range not the row numbers??? This must be simple, but I'm missing it somewhere!!!! -- thunderfoot ------------------------------------------------------------------------ thunderfoot's Profile: http://www.excelforum.com/member.php...o&userid=17341 View this thread: http://www.excelforum.com/showthread...hreadid=470808 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Command button to toggle worksheet event code on / off? | Excel Discussion (Misc queries) | |||
How do i setup a 'toggle' | Excel Discussion (Misc queries) | |||
toggle button & event code | Excel Programming | |||
Can I toggle this Code - to Stamp and to UnStamp? | Excel Programming | |||
How to toggle | Excel Programming |