ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is column hiden? (https://www.excelbanter.com/excel-programming/315859-column-hiden.html)

ianripping[_99_]

Is column hiden?
 

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

--
ianrippin

-----------------------------------------------------------------------
ianripping's Profile: http://www.excelforum.com/member.php...nfo&userid=320
View this thread: http://www.excelforum.com/showthread.php?threadid=27555


ehntd[_8_]

Is column hiden?
 

Take a look at this:

http://www.dicks-blog.com/excel/2004...mine_if_ce.htm

--
ehnt
-----------------------------------------------------------------------
ehntd's Profile: http://www.excelforum.com/member.php...fo&userid=1586
View this thread: http://www.excelforum.com/showthread.php?threadid=27555


Robin Hammond[_2_]

Is column hiden?
 
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

"ianripping" wrote in message
...

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 loc2


--
ianripping


------------------------------------------------------------------------
ianripping's Profile:
http://www.excelforum.com/member.php...fo&userid=3209
View this thread: http://www.excelforum.com/showthread...hreadid=275553





All times are GMT +1. The time now is 04:45 PM.

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