Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am looking for the ability (in vba) to hide column AD without actually
selecting it. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
activesheet.range("AD1").entirecolumn.hidden = true
"Patrick C. Simonds" wrote: I am looking for the ability (in vba) to hide column AD without actually selecting it. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is another way...
ActiveSheet.Columns("AD").Hidden = True By the way, the sheet doesn't have to be active to do this. Assuming Sheet1 is the ActiveSheet, here is how to hide Column AD on Sheet2... Worksheets("Sheet2").Columns("AD").Hidden = True or, if you want to do it via a variable... WSname = "Sheet2" Worksheets(WSname).Columns("AD").Hidden = True -- Rick (MVP - Excel) "Patrick C. Simonds" wrote in message ... I am looking for the ability (in vba) to hide column AD without actually selecting it. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Hide Column If Usedrange of Column ISBLANK Follow-up | Excel Discussion (Misc queries) | |||
Hide Column If Usedrange of Column ISBLANK | Excel Discussion (Misc queries) | |||
hide one column skip two column and unhide one of 11 | Excel Programming | |||
hide column | Excel Programming | |||
Hide column or row based on a cell in the column or row? | Excel Discussion (Misc queries) |