Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have the following macro, which hides and unhides some rows:
Sub ShowMWDC() ' Freezes window at cell A41 ' Unhides rows 41:83 ' Hides rows 2:39 Cells.Select Range("B1").Activate Selection.EntireRow.Hidden = False Selection.EntireColumn.Hidden = False Rows("41:83").Select Selection.EntireRow.Hidden = False Rows("2:40").Select Selection.EntireRow.Hidden = True Range("A44").Select ActiveWindow.FreezePanes = False ActiveWindow.FreezePanes = True End Sub Rows 41:83 correspond to a named range, "MWDC" and rows 2:40 correspond to a named range, "Migration". How would I modify the above to use these named ranges as opposed to the rows? Thanks, Dave -- Brevity is the soul of wit. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using Query and expanding named ranges | Excel Discussion (Misc queries) | |||
Importing Excel named ranges using MS Query | Excel Discussion (Misc queries) | |||
INDIRECT and Named Ranges referencing closed workbook | Excel Worksheet Functions | |||
Excel will not include all of my non-adj ranges in a named range?? | Excel Worksheet Functions | |||
Named dynamic ranges, copied worksheets and graph source data | Charts and Charting in Excel |