Automating the filename for pdf conversion

G

Gem_man

Hi All

I use a print driver based software package to convert my files to PDFs.
The code below prgramatically converts the doc to a pdf. It opens a save as
dialog which then requires me to enter a filename. It then saves the doc as
apdf under the filename that I entered.

Does anyone know if or how I can alter this code so that the value of a
specific variable is pre-entered as the filename? Or better still not even
open the dialog, just save it directly to the correct location under the
correct file name.

Any pointers would be appreciated.

ActivePrinter = "PDF995"
Application.PrintOut FileName:="", Range:=wdPrintAllDocument, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="",
PageType:=wdPrintAllPages, _
Collate:=True, Background:=False, PrintToFile:=False,
PrintZoomColumn:=0, _
PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0


'restore printer to default
'ActivePrinter = "Printer1"
 
D

Doug Robbins - Word MVP

There is usually an option in the .pdf conversion software to prompt for a
filename or not.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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