determine if there are hidden rows in a column

G

Guest

is there a way with vba to determine if
there are hidden rows in a column or range, without
looping through entire range?

tia,
dk
 
G

Guest

You can tell if there are hidden rows using this:
If YourRange.Cells.Count > YourRange.SpecialCells(xlCellTypeVisible).Count
Then
Msgbox "You have hidden cells"
End If
Then you can return the address of the visible ones like this:
MsgBox YourRange.SpecialCells(xlCellTypeVisible).Address
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top