|
-
Dec 5th, 2005, 04:44 PM
#1
Thread Starter
Member
Selecting Excel tabs - without tab name
How can a macro select "all" tabs (or specific ones) without having to write in each tab name? My tab names might change, so I'd like to be able to select them all, or select sheets #2-6, 8, 11-21, etc., and print?
Thanks much!
-
Dec 5th, 2005, 04:54 PM
#2
Addicted Member
Re: Selecting Excel tabs - without tab name
worksheets can be refered to by index as well as by name
-
Dec 6th, 2005, 07:14 AM
#3
Re: Selecting Excel tabs - without tab name
Moved to Office Development.
-
Dec 6th, 2005, 09:50 AM
#4
Re: Selecting Excel tabs - without tab name
VB Code:
Sheets(Array(1,3,5,7,8)).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True
Declan
Don't forget to mark your Thread as resolved.
Take a moment to rate posts that you think are helpful 
-
Dec 6th, 2005, 01:55 PM
#5
Thread Starter
Member
Re: Selecting Excel tabs - without tab name
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|