Automatically choosing a printer to use

J

Joe D

I have an application where multiple users will be using but I want to
automatically choose their PDF printer (with no input from the user). Is
there VBA code that allows you to pull up the names of the available
printers? Then I can choose the one with PDF in the name.
 
J

Jacob Skaria

Dear Joe

Using CutePDF writer it would be....

Sub Macro ()
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"CutePDF Writer on CPW2:", PrintToFile:=True, Collate:=True,
PrToFileName:="C:\Test.pdf"
End Sub

If this post helps click Yes
 
J

Jacob Skaria

Dear Joe

Using CutePDF writer it would be....

Sub Macro ()
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _
"CutePDF Writer on CPW2:", PrintToFile:=True, Collate:=True,
PrToFileName:="C:\Test.pdf"
End Sub

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top