Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Print all worksheets from same tray

Excel 2002

I have one workbook consisting of 55 worksheets.
Some worksheets print to tray 1, others print to tray 3.

How do I change all worksheets in that workbook to tray 2, using a macro ?


E



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Print all worksheets from same tray

Check the value assigned to your paper size.

Sub PaperSize()
Dim oBk As Workbook
Dim oSht As Worksheet
Set oBk = ActiveWorkbook
For Each oSht In oBk.Worksheets
oSht.Select
Debug.Print ActiveSheet.PageSetup.PaperSize
Next oSht
End Sub

This will tell you what the paper size setting on "Page Setup" is for each
of your sheets. If it is different for the ones that print to the other
trays then replace the Debug.Print with

ActiveSheet.PageSetup.PaperSize = 1 ' Or whatever the value you want is...

Ken



"E Jackson" wrote in message
...
Excel 2002

I have one workbook consisting of 55 worksheets.
Some worksheets print to tray 1, others print to tray 3.

How do I change all worksheets in that workbook to tray 2, using a macro ?


E





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
Display a message in system tray Vinod Excel Discussion (Misc queries) 0 March 29th 10 02:08 PM
How to make all worksheets pull from the same tray Lynn Excel Discussion (Misc queries) 0 September 20th 07 10:04 PM
I need the total for highlighted cells in lower tray. bp Excel Discussion (Misc queries) 1 June 3rd 07 07:13 PM
Default Paper Tray Thomas M Excel Discussion (Misc queries) 0 August 16th 06 07:48 AM
Paper Tray selection Problem, Michael Hoffmann Excel Discussion (Misc queries) 4 December 3rd 04 09:08 PM


All times are GMT +1. The time now is 11:45 PM.

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"