unhide columns in excel vba code example
Example: excel vba hide columns
Columns(1).Hidden = True
' Into a range:
Dim myRange As Range
Set myRange = Application.Range("A1")
myRange.EntireColumn.Hidden = True
Columns(1).Hidden = True
' Into a range:
Dim myRange As Range
Set myRange = Application.Range("A1")
myRange.EntireColumn.Hidden = True