I am looking to some help to understand why i am having an issue with a recorded macro.
I want to hide multiple columns and have recorded a macro as below. My problem becomes that when I run the macro, it hides all columns from R:AZ but there are specific column i want left un-hidden.
Sub HIDE_FY18_BUDGETS()
'
' HIDE_FY18_BUDGETS Macro
'
'
Range("R:R,S:S,U:U,V:V,X:X,Y:Y,AA:AA,AB:AB,AD:AD,AE:AE,AG:AG,AH:AH").Select
Range("AH1").Activate
ActiveWindow.SmallScroll ToRight:=17
Range( _
"R:R,S:S,U:U,V:V,X:X,Y:Y,AA:AA,AB:AB,AD:AD,AE:AE,AG:AG,AH:AH,AJ:AJ,AK:AK,AM:AM,AN:AN,AP:AP,AQ:AQ,AS:AS,AT:AT,AV:AV,AW:AW,AY:AY" _
).Select
Range("AZ1").Activate
ActiveWindow.ScrollColumn = 26
ActiveWindow.ScrollColumn = 15
ActiveWindow.ScrollColumn = 1
Selection.EntireColumn.Hidden = True
End Sub
I want to hide multiple columns and have recorded a macro as below. My problem becomes that when I run the macro, it hides all columns from R:AZ but there are specific column i want left un-hidden.
Sub HIDE_FY18_BUDGETS()
'
' HIDE_FY18_BUDGETS Macro
'
'
Range("R:R,S:S,U:U,V:V,X:X,Y:Y,AA:AA,AB:AB,AD:AD,AE:AE,AG:AG,AH:AH").Select
Range("AH1").Activate
ActiveWindow.SmallScroll ToRight:=17
Range( _
"R:R,S:S,U:U,V:V,X:X,Y:Y,AA:AA,AB:AB,AD:AD,AE:AE,AG:AG,AH:AH,AJ:AJ,AK:AK,AM:AM,AN:AN,AP:AP,AQ:AQ,AS:AS,AT:AT,AV:AV,AW:AW,AY:AY" _
).Select
Range("AZ1").Activate
ActiveWindow.ScrollColumn = 26
ActiveWindow.ScrollColumn = 15
ActiveWindow.ScrollColumn = 1
Selection.EntireColumn.Hidden = True
End Sub