Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 46
Default Hiding blank rows

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Hiding blank rows

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove blank rows without hiding them peter.thompson[_40_] Excel Programming 1 January 12th 06 09:38 PM
Automatically Hiding Blank Rows [email protected] Excel Discussion (Misc queries) 5 December 31st 05 04:13 PM
Hiding Rows if the linked rows are blank KG Excel Discussion (Misc queries) 9 May 18th 05 02:32 AM
Hiding blank rows mlkpied Excel Discussion (Misc queries) 1 March 29th 05 08:57 PM
Hiding Rows with Zero or Blank Values Robert Black Excel Programming 0 July 30th 03 11:21 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"