Archive of Mr Excel Message Board

Back to Excel VBA archive index
Back to archive home

Test for Hidden

Posted by Don on November 05, 2001 7:47 AM
My macro has the following line:
ActiveCell.Offset(2, 0).EntireRow.Activate
After that, I want to check to see if that row is hidden. How do I check for visible or hidden status?

Check out our Excel VBA Resources

Re: Test for Hidden

Posted by Mark O'Brien on November 05, 2001 10:08 AM

In my example I hid row 3 of sheet 1. This code will test the hidden property:

If Sheets("Sheet1").Rows(3).Hidden = True Then
MsgBox "Hi"
End If

Hope this helps.

This archive is from the original message board at
All contents © 1998-2004
Visit our online store to buy searchable CD's with thousands of VBA and Excel answers.
Microsoft Excel is a registered trademark of the Microsoft Corporation.
MrExcel is a registered trademark of Tickling Keys, Inc.