-
Solved: hiding columns
hello,
I am trying to hide a selection of columns. I currently am using that code but I believe there is a better way of addressing the problem.
[VBA]Columns("D:I").Select
Selection.EntireColumn.Hidden = True
Columns("L:X").Select
Selection.EntireColumn.Hidden = True
Columns("AA:AI").Select
Selection.EntireColumn.Hidden = True
Columns("AK:HS").Select
Selection.EntireColumn.Hidden = True[/VBA]
I tried this unsuccessfully:
[VBA]
'Columns("D:I, L:X, AA:AI, AK:HS").Select
'Selection.EntireColumn.Hidden = True
[/VBA]
does anybody have a suggestion please?
thanks!
-
[VBA]Range("D:I, L:X, AA:AI, AK:HS").EntireColumn.Hidden = True[/VBA]
-
thx! range works much better than columns...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules