I am trying to hide non adjacent columns in a spreadsheet with a macro, I can select the columns no problem and hide them but when I assign the macro I have recorded to a button it hides all the colums between the ones I have selected as well.
Does anyone no what I am doing wrong and how to fix it.
The Macro I have recorded is
Sub Hide_all()
'
' Hide_all Macro
'
'
Range("N:N,K:N,C:C").Select
Range("C1").Activate
Selection.EntireColumn.Hidden = True
ActiveWindow.SmallScroll ToRight:=-2
End Sub
Bookmarks