I am trying to Hide columns but keep getting this error.
Run-time error ‘1004’
Unable to set the Hidden property of the Range class
Sub COLLAPSED()
'
' COLLAPSED Macro
' Macro recorded 1/15/2007 by Margie Wong - x4346
'
Cells.Select
Selection.EntireColumn.Hidden = False
Range("A7").Select
Do Until ActiveCell = "End"
If ActiveCell = "HIDE" Then
Selection.EntireColumn.Hidden = True
End If
ActiveCell.Offset(0, 1).Select
Loop
Columns("ha:ha").Select
Selection.EntireColumn.Hidden = True
Range("A6").Select
End Sub
Please help!
Bookmarks