Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am wondering if it is possible in Excel to permanently delete all hidden
columns in an area of a worksheet with one move (without having to unhide every column and then manually delete each column)? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This might do it. Tested lightly<g
Sub DelAllHiddenCols() Dim Col As Range Dim DelCols As Range For Each Col In Rows(1).EntireColumn If Col.Hidden Then If DelCols Is Nothing Then Set DelCols = Col Else Set DelCols = Union(DelCols, Col) End If End If Next If Not DelCols Is Nothing Then DelCols.Delete End Sub -- Jim "Gizmofied" wrote in message ... |I am wondering if it is possible in Excel to permanently delete all hidden | columns in an area of a worksheet with one move (without having to unhide | every column and then manually delete each column)? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you - I will try this out.
"Jim Rech" wrote: This might do it. Tested lightly<g Sub DelAllHiddenCols() Dim Col As Range Dim DelCols As Range For Each Col In Rows(1).EntireColumn If Col.Hidden Then If DelCols Is Nothing Then Set DelCols = Col Else Set DelCols = Union(DelCols, Col) End If End If Next If Not DelCols Is Nothing Then DelCols.Delete End Sub -- Jim "Gizmofied" wrote in message ... |I am wondering if it is possible in Excel to permanently delete all hidden | columns in an area of a worksheet with one move (without having to unhide | every column and then manually delete each column)? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I make excel hide columns when it says cannot move objects | Excel Discussion (Misc queries) | |||
Cell protection with hidden columns | Excel Discussion (Misc queries) | |||
PLEASE HELP - Pasting Cells to WrkSheet with Hidden Columns | Excel Worksheet Functions | |||
Formula to delete blank cells across multiple columns? | Excel Worksheet Functions | |||
How to have multiple columns in pivot table data area? | Excel Worksheet Functions |