ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Hide blank rows in a range (https://www.excelbanter.com/excel-programming/323527-hide-blank-rows-range.html)

trussman

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



All times are GMT +1. The time now is 11:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com