Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Hide blank rows in a range

Hello,

This code works but, I want to hide rows within this range (rows 5:154)
only

Sub HideBlankRows()

Dim RngCol As Range
Dim i As Range
Set RngCol = Range("A1:A20", Range("A" & _
Rows.Count).End(xlUp).Address)
For Each i In RngCol
If i.Value = "" Or i.Value = "*" Then i.EntireRow.Hidden = True
Next i
End Sub


Thanks in advance for the help

Marc

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
Macro to HIDE blank rows JForsyth Excel Worksheet Functions 6 June 5th 09 04:51 PM
Hide Blank Rows TamIam Excel Worksheet Functions 3 May 6th 09 08:42 PM
Hide rows of cells that are blank dford Excel Discussion (Misc queries) 9 February 4th 07 11:35 PM
Hide Blank Rows dee Excel Worksheet Functions 2 May 17th 06 11:30 PM
Hide columns & rows that contain "0" or blank in a range of cells lw new guest Excel Worksheet Functions 0 August 18th 05 04:27 PM


All times are GMT +1. The time now is 06:33 AM.

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

About Us

"It's about Microsoft Excel"