Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printing several worksheets as _one_ print job

I use a VBA macro to print all worksheets of a workbook.

The code looks like this:
ActiveWorkbook.Sheets.PrintOut

I've noticed that Excel 2003 SP1 creates a different print job for each of
the WorkBook's WorkSheets. Since I use a printer driver that creates PDF
files out of print jobs I get three PDFs for three WorkSheets.
Is it possible to print all WorkSheets of a WorkBook into _one_ print job?
The reason is I want one PDF for the whole Excel file and not several.

Thanks,
Guido
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Printing several worksheets as _one_ print job

Hi Guido,

Have you tried to call the PrintOut method of the method directly?
Sub Test()
ActiveWorkbook.PrintOut
End Sub

In this way there will be only one print job. If you still have any concern
,please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Printing several worksheets as _one_ print job

You might try a variation of the following. In this
example, the for-next loop sends all of the visible sheets
to the printer as one job. The code can be easily
modified to your requirements.

Sub Print_Sheets()
Dim sht
Application.ScreenUpdating = False
For Each sht In Sheets
If sht.Visible Then sht.Select Replace:=False
Next
ActiveWindow.SelectedSheets.PrintOut copies:=1
ActiveSheet.Select
Application.ScreenUpdating = True
End Sub

Regards,

John Mansfield
The Planning Deskbook
http://www.pdbook.com

-----Original Message-----
I use a VBA macro to print all worksheets of a workbook.

The code looks like this:
ActiveWorkbook.Sheets.PrintOut

I've noticed that Excel 2003 SP1 creates a different

print job for each of
the WorkBook's WorkSheets. Since I use a printer driver

that creates PDF
files out of print jobs I get three PDFs for three

WorkSheets.
Is it possible to print all WorkSheets of a WorkBook into

_one_ print job?
The reason is I want one PDF for the whole Excel file and

not several.

Thanks,
Guido
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printing several worksheets as _one_ print job

Thanks for your code. Unfortunately, my file that has three Worksheets still
produces three print jobs. However, another file with three Worksheets
produces only one print job. Some experiments revealed different page setups
(portrait/landscape, margins). Obviously this makes Excel begin a different
print job.

Guido

"John Mansfield" wrote:

You might try a variation of the following. In this
example, the for-next loop sends all of the visible sheets
to the printer as one job. The code can be easily
modified to your requirements.

Sub Print_Sheets()
Dim sht
Application.ScreenUpdating = False
For Each sht In Sheets
If sht.Visible Then sht.Select Replace:=False
Next
ActiveWindow.SelectedSheets.PrintOut copies:=1
ActiveSheet.Select
Application.ScreenUpdating = True
End Sub

Regards,

John Mansfield
The Planning Deskbook
http://www.pdbook.com

-----Original Message-----
I use a VBA macro to print all worksheets of a workbook.

The code looks like this:
ActiveWorkbook.Sheets.PrintOut

I've noticed that Excel 2003 SP1 creates a different

print job for each of
the WorkBook's WorkSheets. Since I use a printer driver

that creates PDF
files out of print jobs I get three PDFs for three

WorkSheets.
Is it possible to print all WorkSheets of a WorkBook into

_one_ print job?
The reason is I want one PDF for the whole Excel file and

not several.

Thanks,
Guido
.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printing several worksheets as _one_ print job

Well, to be precise: a different DPI setting (in page setup) for the
different WorkSheets made Excel produce different print jobs. It's not a bug
- it's a feature... ;)

Guido


  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 115
Default Printing several worksheets as _one_ print job

Hi Guido,

Did you still have any concern on this issue?
If so please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Printing several worksheets as _one_ print job

I tried the ActiveWorkbook.PrintOut macro and I get the same thing. I am
printing to a Xerox copier that has a computer front end that makes the
copier a printer. All of the worksheets are submitted to the frontend
computer as separate files. How can I get Excel to print all worksheets as
one job to the printer. My pages will not print in order.

Our work around is to "print all worksheets" and "output options print to
file". Then Distill the file to an Acrobate file.

Any Ideas?

Mike


""Peter Huang"" wrote:

Hi Guido,

Have you tried to call the PrintOut method of the method directly?
Sub Test()
ActiveWorkbook.PrintOut
End Sub

In this way there will be only one print job. If you still have any concern
,please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Printing several worksheets as _one_ print job

Well,

The workaround does not work. We were using this workaround on the PC and it
does not act the same way on the Macintosh. Excell really needs better
control of it's printing process. You should be able to select a button that
sends all worksheets as one file.



"DrMacMike" wrote:

I tried the ActiveWorkbook.PrintOut macro and I get the same thing. I am
printing to a Xerox copier that has a computer front end that makes the
copier a printer. All of the worksheets are submitted to the frontend
computer as separate files. How can I get Excel to print all worksheets as
one job to the printer. My pages will not print in order.

Our work around is to "print all worksheets" and "output options print to
file". Then Distill the file to an Acrobate file.

Any Ideas?

Mike


""Peter Huang"" wrote:

Hi Guido,

Have you tried to call the PrintOut method of the method directly?
Sub Test()
ActiveWorkbook.PrintOut
End Sub

In this way there will be only one print job. If you still have any concern
,please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.


  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Printing several worksheets as _one_ print job

"Guido Kraus" wrote:

I use a VBA macro to print all worksheets of a workbook.

The code looks like this:
ActiveWorkbook.Sheets.PrintOut

I've noticed that Excel 2003 SP1 creates a different print job for each of
the WorkBook's WorkSheets. Since I use a printer driver that creates PDF
files out of print jobs I get three PDFs for three WorkSheets.
Is it possible to print all WorkSheets of a WorkBook into _one_ print job?
The reason is I want one PDF for the whole Excel file and not several.


I found a fix to this problem, that works in Office 2000 anyway...

Each worksheet is created from a single worksheet.
Right click on the target worksheet, "Move or Copy", check "Make a Copy".

DON'T Insert-Worksheet.
DON'T populate more than a single worksheet that is to be printed from the
auto-generated ones.

Then format away. The result for me was a five page, single pdf, three
pages portrait, and two pages landscape (with graphics). Before applying
this trick, I had three individual pages (each as their own pdf) and a pair
of pages that had been copied one from the other (which was the clue)

Yes, it is a pain in the tush to copy the contents and the column widths
from existing spreadsheets, but it does pay off...

  #10   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Printing several worksheets as _one_ print job


--
Jerry and Connie
CEB


"Guido Kraus" wrote:

I use a VBA macro to print all worksheets of a workbook.

The code looks like this:
ActiveWorkbook.Sheets.PrintOut

I've noticed that Excel 2003 SP1 creates a different print job for each of
the WorkBook's WorkSheets. Since I use a printer driver that creates PDF
files out of print jobs I get three PDFs for three WorkSheets.
Is it possible to print all WorkSheets of a WorkBook into _one_ print job?
The reason is I want one PDF for the whole Excel file and not several.

Thanks,
Guido

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
Set the print order of worksheets when printing entire workbook jimbo Excel Discussion (Misc queries) 2 December 4th 08 09:01 PM
Need to print a workbook but worksheets have diff print areas Angela Steele Excel Discussion (Misc queries) 1 January 17th 08 07:39 PM
Printing single pages from multiple worksheets in a single print job [email protected] Excel Discussion (Misc queries) 2 April 27th 07 06:11 PM
How do I print a workbook in but only print selected worksheets? Karl S. Excel Discussion (Misc queries) 1 August 31st 06 12:34 AM
Printing? Worksheets not printing the same on multiple pc's! 43fan Excel Programming 2 April 29th 04 02:34 PM


All times are GMT +1. The time now is 03:30 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"