Hide Rows Across Mulitple Sheets

J

Jason Penny

Good Monday All: I have a workbook with 57 sheets which
are all identical. I need to hide the same columns on
sheets 15 to 30 when a button on the idex sheet is
pressed. All help is appreciated.
 
S

steve

Jason,

There's probably an easier way, but this works:
[watch word wrap]

Sheets(Array(15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30)).Select
Columns("E:G").EntireColumn.Hidden = True

or loop

Dim x As Integer
For x = 15 To 30
Sheets(x).Columns("E:G").EntireColumn.Hidden = True
Next

both are fast.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top