Use Saveas to convert document to PDF without prompting?

S

StevenM

Is it possible to use Saveas to convert a Word document to PDF without
prompting?

I'm using Word 2007 (and Vista), and I have the line:

newDoc.SaveAs FileName:=sNewFileName, FileFormat:=wdExportFormatPDF

It worked, but I had to answer two promts for each PDF file saved. Is there
a way to accomplish this without prompting?

Steven Craig Miller
 
G

Graham Mayor

Use

newDoc.ExportAsFixedFormat _
OutputFileName:=sNewFilename, _
ExportFormat:=wdExportFormatPDF, _
BitmapMissingFonts:=True, _
UseISO19005_1:=True

instead

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

StevenM

To: Graham Mayor,

Thanks!

Steven Craig Miller

Graham Mayor said:
Use

newDoc.ExportAsFixedFormat _
OutputFileName:=sNewFilename, _
ExportFormat:=wdExportFormatPDF, _
BitmapMissingFonts:=True, _
UseISO19005_1:=True

instead

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
G

Graham Mayor

You are welcome :)

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - 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