Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default Group All Sheets in a workbook

Anyone know the code to group all Sheets in a workbook??...trying to do
the same page setup on all sheets in a workbook and need to group them
together first.

TIA.
-mike


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Group All Sheets in a workbook


"Michael Smith" wrote in message
...
: Anyone know the code to group all Sheets in a workbook??...trying to do
: the same page setup on all sheets in a workbook and need to group them
: together first.
:
: TIA.
: -mike

Well, not sure exactly what you mean but there are several ways to select
worksheets.

You can use the sheets collection
Sheets.Select
to select all sheets

or you can iterate throught the collection
for each sh in sheets
...code here
next sh

you could array the sheets
Sheets(Array("Sheet1", "Sheet2", "Sheet3", "Sheet4")).Select

I believe .pagesetup is a propert of worksheet only so you either need to
group them first then use activesheet or iterate
Paul


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
Name a group of sheets Mary Ann Excel Discussion (Misc queries) 2 November 26th 09 10:59 PM
group excel sheets within workbook melbournedude1 Excel Discussion (Misc queries) 4 February 13th 06 12:53 PM
Group Sheets Brian Keanie Excel Discussion (Misc queries) 10 January 1st 05 08:34 PM
Need group all sheets in a workbook TOMB Excel Programming 2 November 16th 04 03:58 PM
Print group of sheets by VBA kyoux Excel Programming 3 June 9th 04 04:16 PM


All times are GMT +1. The time now is 10:05 AM.

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

About Us

"It's about Microsoft Excel"