![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Location: Longmont, CO
Posts: 279
|
I want a message box to pop up IF the Column that the active cell is in is Hidden.
I tried this: If ActiveCell.EntireColumnHidden = True Then but I get "Object Doesn't support this property or method". I suppose this is because I'm trying to describe the property of the cell rather than telling the program to change the cell's property.
__________________
"Never go in against a Sicilian when death is on the line!" |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: San Francisco, California USA
Posts: 10,387
|
Here's what works when I try it:
Sub ColState() If ActiveCell.EntireColumn.Hidden = True Then MsgBox "Help, I'm lost!" End If End Sub |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|