Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hide Rows Across Mulitple Sheets

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hide Rows Across Mulitple Sheets

for i = 15 to 30
worksheets(i).Range("C:M")EntireColumn.Hidden = True
Next

--
Regards,
Tom Ogilvy



"Jason Penny" wrote in message
...
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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Hide Rows Across Mulitple Sheets

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.

--
sb
"Jason Penny" wrote in message
...
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I append multiple sheets from mulitple xls. files. into 1 salem_gladiator Excel Discussion (Misc queries) 1 January 16th 09 11:02 PM
how to duplex mulitple sheets simultaneously? smegen Excel Worksheet Functions 1 March 15th 07 09:03 PM
KBV - How do i progam a recorded to repeat on mulitple sheets? KBV Excel Discussion (Misc queries) 1 July 4th 06 05:46 PM
Hide rows and update fileds in different sheets Carlos Canstatt Excel Discussion (Misc queries) 1 November 2nd 05 02:47 AM
How do I convert an Excel workbook that has mulitple sheets into . Converting Excel Excel Worksheet Functions 3 April 25th 05 09:47 PM


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"