Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() In a MS discussion board a few months ago, someone helped me with the macro listed below. It has worked like a charm and I have been able to replicate it for different workbooks. I am now stuck again though. I need to expand only the rows listed (a4, a5, a20, a35, a50) but collapse all rows within the range(a4:a50). How can I accomplish this? ![]() "Dim myRng As Range Set myRng = Me.Range("a4, a5, a20, a35, a50") myRng.EntireRow.Hidden = Not (myRng(1).EntireRow.Hidden" -- Bea ------------------------------------------------------------------------ Bea's Profile: http://www.excelforum.com/member.php...o&userid=32500 View this thread: http://www.excelforum.com/showthread...hreadid=522901 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Rows & Columns in Excel | Excel Worksheet Functions | |||
Automatically inserting rows | Excel Worksheet Functions | |||
Hiding Rows if the linked rows are blank | Excel Discussion (Misc queries) | |||
Conditional Hide/Unhide Rows | Excel Discussion (Misc queries) | |||
flexible paste rows function that inserts the right number of rows | Excel Discussion (Misc queries) |