C
Crownman
Hi all:
I am trying to create a macro that will select several columns on a
page and hide them. Thus far I have the following code:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 7/29/2007 by Crownman
'
' Keyboard Shortcut: Ctrl+k
'
Sheets("SUMMARY").Select
Range("F:F,I:I,L:L,O:O,R:R,X:X").Select
Selection.EntireColumn.Hidden = True
Range("D9").Select
Sheets("Work_area").Select
End Sub
When I run the macro, instead of hiding only the selected columns, it
hides all the columns from D through W. In all cases, the columns I
want to hide contain formulas that are based on the two columns to the
left of the ones to be hidden.
The macro was originally done with the macro recorder - which produced
the same problem.
Can anyone give me any suggestions?
Crownman
I am trying to create a macro that will select several columns on a
page and hide them. Thus far I have the following code:
Sub Macro1()
'
' Macro1 Macro
' Macro recorded 7/29/2007 by Crownman
'
' Keyboard Shortcut: Ctrl+k
'
Sheets("SUMMARY").Select
Range("F:F,I:I,L:L,O:O,R:R,X:X").Select
Selection.EntireColumn.Hidden = True
Range("D9").Select
Sheets("Work_area").Select
End Sub
When I run the macro, instead of hiding only the selected columns, it
hides all the columns from D through W. In all cases, the columns I
want to hide contain formulas that are based on the two columns to the
left of the ones to be hidden.
The macro was originally done with the macro recorder - which produced
the same problem.
Can anyone give me any suggestions?
Crownman