Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default ActiveWindow.SelectedSheets.PrintOut - Print to single workbook

Can anyone give me a hand, I'm trying to print the last two pages of a
workbook to a single pdf (i.e. not one pdf per worksheet).

I've had a good dig around the forum & found this code.

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Strangely it worked on my "test" book (which just had a bit of text on
two sheets), but when I use it on my actual book, it gives me
individual pdfs. Does anyone know what trips this up? I tried
deleting out the non-printing sheets (not really a solution, but to
see if the problem came from too many sheets) & that didn't work.

We have to loop this code over ~180 workbooks, so not doing it
manually would be a bonus :)

Cheers,
Kate
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default ActiveWindow.SelectedSheets.PrintOut - Print to single workbook

Hi KateB,

I think the solution will not be in VBA but in your printer settings. Most
of the PDF printers have options there how to print out document (merge of a
separate sheets). I think a good dig around in your printer settings will
solve the issue.

Regards,

Brotha lee

"KateB" wrote:

Can anyone give me a hand, I'm trying to print the last two pages of a
workbook to a single pdf (i.e. not one pdf per worksheet).

I've had a good dig around the forum & found this code.

ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Strangely it worked on my "test" book (which just had a bit of text on
two sheets), but when I use it on my actual book, it gives me
individual pdfs. Does anyone know what trips this up? I tried
deleting out the non-printing sheets (not really a solution, but to
see if the problem came from too many sheets) & that didn't work.

We have to loop this code over ~180 workbooks, so not doing it
manually would be a bonus :)

Cheers,
Kate

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default ActiveWindow.SelectedSheets.PrintOut - Print to single workbook

I just had a dig around, but no joy. Using Acrobat Distiller.
Strangely, when I select the group & print preview, all pages show,
but they seem to be spooled separately.

I meant to mention before that I've also tried loading the sheets into
an array & that didn't help either.

Any other ideas?

Kate


On Dec 11, 8:11*am, Brotha Lee
wrote:
Hi KateB,

I think the solution will not be in VBA but in your printer settings. Most
of the PDF printers have options there how to print out document (merge of a
separate sheets). I think a good dig around in your printer settings will
solve the issue.

Regards,

Brotha lee



"KateB" wrote:
Can anyone give me a hand, I'm trying to print the last two pages of a
workbook to a single pdf (i.e. not one pdf per worksheet).


I've had a good dig around the forum & found this code.


ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True


Strangely it worked on my "test" book (which just had a bit of text on
two sheets), but when I use it on my actual book, it gives me
individual pdfs. *Does anyone know what trips this up? *I tried
deleting out the non-printing sheets (not really a solution, but to
see if the problem came from too many sheets) & that didn't work.


We have to loop this code over ~180 workbooks, so not doing it
manually would be a bonus :)


Cheers,
Kate- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default ActiveWindow.SelectedSheets.PrintOut - Print to single workboo

Hi KateB,

Sorry I do not have any experience with Adobe Distiller. Only way I can
figure of there is a special user interface (not via printer settings) for
the Adobe Distiller printer. Maybe a help forum of Adobe Distiller can give
you a solution?



"KateB" wrote:

I just had a dig around, but no joy. Using Acrobat Distiller.
Strangely, when I select the group & print preview, all pages show,
but they seem to be spooled separately.

I meant to mention before that I've also tried loading the sheets into
an array & that didn't help either.

Any other ideas?

Kate


On Dec 11, 8:11 am, Brotha Lee
wrote:
Hi KateB,

I think the solution will not be in VBA but in your printer settings. Most
of the PDF printers have options there how to print out document (merge of a
separate sheets). I think a good dig around in your printer settings will
solve the issue.

Regards,

Brotha lee



"KateB" wrote:
Can anyone give me a hand, I'm trying to print the last two pages of a
workbook to a single pdf (i.e. not one pdf per worksheet).


I've had a good dig around the forum & found this code.


ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True


Strangely it worked on my "test" book (which just had a bit of text on
two sheets), but when I use it on my actual book, it gives me
individual pdfs. Does anyone know what trips this up? I tried
deleting out the non-printing sheets (not really a solution, but to
see if the problem came from too many sheets) & that didn't work.


We have to loop this code over ~180 workbooks, so not doing it
manually would be a bonus :)


Cheers,
Kate- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default ActiveWindow.SelectedSheets.PrintOut - Print to single workboo

Further net searching turned up that if you change the print
resolution Print Setup Print Quality to 600 dpi (even if it already
says this) for the pages you want to print, then you can print to the
same pdf. I suspect you could set the resolution to anything & as
long as it matched, it would be OK.

One of those quirks, I suppose....

K


On Dec 11, 9:00*am, Brotha Lee
wrote:
Hi KateB,

Sorry I do not have any experience with Adobe Distiller. Only way I can
figure of there is a special user interface (not via printer settings) for
the Adobe Distiller printer. Maybe a help forum of Adobe Distiller can give
you a solution?



"KateB" wrote:
I just had a dig around, but no joy. *Using Acrobat Distiller.
Strangely, when I select the group & print preview, all pages show,
but they seem to be spooled separately.


I meant to mention before that I've also tried loading the sheets into
an array & that didn't help either.


Any other ideas?


Kate


On Dec 11, 8:11 am, Brotha Lee
wrote:
Hi KateB,


I think the solution will not be in VBA but in your printer settings. Most
of the PDF printers have options there how to print out document (merge of a
separate sheets). I think a good dig around in your printer settings will
solve the issue.


Regards,


Brotha lee


"KateB" wrote:
Can anyone give me a hand, I'm trying to print the last two pages of a
workbook to a single pdf (i.e. not one pdf per worksheet).


I've had a good dig around the forum & found this code.


ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True


Strangely it worked on my "test" book (which just had a bit of text on
two sheets), but when I use it on my actual book, it gives me
individual pdfs. *Does anyone know what trips this up? *I tried
deleting out the non-printing sheets (not really a solution, but to
see if the problem came from too many sheets) & that didn't work.


We have to loop this code over ~180 workbooks, so not doing it
manually would be a bonus :)


Cheers,
Kate- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
ActiveWindow.SelectedSheets.PrintOut ? James Cornthwaite Excel Programming 6 November 12th 06 07:59 PM
ActiveWindow.SelectedSheets.PrintOut excel-lent Excel Programming 4 June 15th 05 03:48 PM
ActiveWindow.SelectedSheets.PrintPreview HelpMe Excel Programming 0 November 17th 04 03:53 PM
print and save a single sheet from a workbook using a commandbutt. bibio_ Excel Programming 1 November 13th 04 12:53 PM
Disable Print Button In a Single Workbook Hambone Excel Programming 0 January 31st 04 12:31 AM


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

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"