Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a named range which includes some rows which are empty. When I apply
subtotals using a macro, all the empty rows end up in the bottom category. What code can I include in the macro to hide all the empty rows. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi P,
Try: Public Sub Tester001() On Error Resume Next Range("NamedRange").Columns(1).SpecialCells(xlBlan ks). _ EntireRow.Hidden = True On Error GoTo 0 End Sub '<<============= Change "NamedRange" to your range of interest. --- Regards, Norman "pkeegs" wrote in message ... I have a named range which includes some rows which are empty. When I apply subtotals using a macro, all the empty rows end up in the bottom category. What code can I include in the macro to hide all the empty rows. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Remove blank rows without hiding them | Excel Programming | |||
Automatically Hiding Blank Rows | Excel Discussion (Misc queries) | |||
Hiding Rows if the linked rows are blank | Excel Discussion (Misc queries) | |||
Hiding blank rows | Excel Discussion (Misc queries) | |||
Hiding Rows with Zero or Blank Values | Excel Programming |