View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Eva Shanley[_2_] Eva Shanley[_2_] is offline
external usenet poster
 
Posts: 29
Default Code not hiding columns

I recorded the following code that should hide Col. F in
Sheets 1, 2, and 3. This works fine when I record, but
when I run the code manually Col. F hides on Sheet 1 only,
while the column is merely selected on Sheets 2 & 3. Any
idea what happens here? Thanks in advance!

Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
Columns("F:F").Select
Selection.EntireColumn.Hidden = True
Sheets("Sheet1").Select
End Sub