ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Print to PDF code for both Cute PDF and Adobe (https://www.excelbanter.com/excel-programming/429182-print-pdf-code-both-cute-pdf-adobe.html)

Neall

Print to PDF code for both Cute PDF and Adobe
 
I have a Print to PDF button which works great and renames the file to a
populated cell, but I want the code to also work with Adobe.

This is what I have


'Application.ActivePrinter = "CutePDF Writer on CPW2:"
'ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
'"CutePDF Writer on CPW2:", Collate:=True

Any suggestions?

Thanks in advance
--
Neall

Jacob Skaria

Print to PDF code for both Cute PDF and Adobe
 
Refer the below link..

http://www.erlandsendata.no/english/...tchangeprinter

If this post helps click Yes
---------------
Jacob Skaria


"Neall" wrote:

I have a Print to PDF button which works great and renames the file to a
populated cell, but I want the code to also work with Adobe.

This is what I have


'Application.ActivePrinter = "CutePDF Writer on CPW2:"
'ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
'"CutePDF Writer on CPW2:", Collate:=True

Any suggestions?

Thanks in advance
--
Neall



All times are GMT +1. The time now is 03:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com