K
Kent Prokopy
I want to be able to hide a column on all sheets of a workbook without having
to loop through each sheet. I have tried the following but it only hides the
column on sheet1
Sub Macro1()
' Macro1 Macro
' Macro recorded 8/20/2008 by Kent Prokopy
Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
Columns("D").EntireColumn.Hidden = True
End Sub
It makes no sense that I have to use a loop for this.
to loop through each sheet. I have tried the following but it only hides the
column on sheet1
Sub Macro1()
' Macro1 Macro
' Macro recorded 8/20/2008 by Kent Prokopy
Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
Columns("D").EntireColumn.Hidden = True
End Sub
It makes no sense that I have to use a loop for this.