Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Give this a whirl...
Sub HideUnhideColumns() Dim rngToHide As Range On Error Resume Next Set rngToHide = ActiveCell.EntireRow.SpecialCells(xlCellTypeBlanks ) On Error GoTo 0 If Not rngToHide Is Nothing Then ActiveSheet.Cells.EntireColumn.Hidden = False rngToHide.EntireColumn.Hidden = True End If End Sub -- HTH... Jim Thomlinson "Ed" wrote: Hello, I have a table from A1:EG70 that looks like a checkerboard, not all cells have info in them. Does anyone know a macro to auto hide the empty columns within the active row? The idea is to have visible only the columns with info while browsing vertically the different entries. thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Auto hide/Unhide columns | Excel Worksheet Functions | |||
Hide/Unhide columns using button on top over relevant columns | Excel Discussion (Misc queries) | |||
Using Hide, Unhide, and auto filter - select all on a protected sh | Excel Worksheet Functions | |||
How to auto hide and unhide columns using 1 and 2 icons | Excel Worksheet Functions | |||
How do I hide or unhide zero value columns/rows USING A MACRO? | Excel Discussion (Misc queries) |