Is column hiden?

  • Thread starter Thread starter ianripping
  • Start date Start date
I

ianripping

Is there a command in VBA that can query if a column is hidden or not?

Eg if col a is hidden then goto loc1 else goto loc
 
Ian,

This should be easily adaptable.

Function HiddenCellsInRange(rngTest As Range) As Boolean
Dim vCell As Variant
For Each vCell In rngTest
If vCell.EntireRow.OutlineLevel > 1 Or _
vCell.RowHeight <= 0 Or vCell.ColumnWidth <= 0 Then
HiddenCellsInRange = True
Exit Function
End If
Next vCell
End Function

Robin Hammond
www.enhanceddatasystems.com
 

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

Back
Top