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

Re: Use Saveas to convert document to PDF without prompting? by Graham

Graham
Fri Jul 11 07:08:09 PDT 2008

Use

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

instead

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>



StevenM wrote:
> 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



Re: Use Saveas to convert document to PDF without prompting? by stevencraigmiller(at)comcast(dot)net>

stevencraigmiller(at)comcast(dot)net>
Fri Jul 11 08:01:02 PDT 2008

To: Graham Mayor,

Thanks!

Steven Craig Miller

"Graham Mayor" wrote:

> Use
>
> newDoc.ExportAsFixedFormat _
> OutputFileName:=sNewFilename, _
> ExportFormat:=wdExportFormatPDF, _
> BitmapMissingFonts:=True, _
> UseISO19005_1:=True
>
> instead
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
>
>
> StevenM wrote:
> > 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
>
>
>

Re: Use Saveas to convert document to PDF without prompting? by Graham

Graham
Fri Jul 11 22:36:33 PDT 2008

You are welcome :)

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

My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>


StevenM wrote:
> To: Graham Mayor,
>
> Thanks!
>
> Steven Craig Miller
>
> "Graham Mayor" wrote:
>
>> Use
>>
>> newDoc.ExportAsFixedFormat _
>> OutputFileName:=sNewFilename, _
>> ExportFormat:=wdExportFormatPDF, _
>> BitmapMissingFonts:=True, _
>> UseISO19005_1:=True
>>
>> instead
>>
>> --
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>> Graham Mayor - Word MVP
>>
>> My web site www.gmayor.com
>> Word MVP web site http://word.mvps.org
>> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>>
>>
>>
>> StevenM wrote:
>>> 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