Can anyone point me in the right direction (or tell me that it can't be done)?
thanks in anticipation.
I know this works for Word 2007, I'm unsure about 2003:
Dim oDoc as Document
Dim sFilename as String
oDoc.ExportAsFixedFormat _
OutputFileName:=sFilename, _
ExportFormat:=wdExportFormatPDF, _
BitmapMissingFonts:=True, _
UseISO19005_1:=True
Steven Craig Miller
As far as I can tell from searching the MSFT site, Word 2003 doesn't support
the creation of PDF files natively (altho Word 2007 does - albeit with some
limitations). Therefore, I suspect that the functionality you are accessing
through the 'Create PDF' menu item is being provided by a third-party
application of some sort - Adobe PDF Maker, by the looks of your subject
line. If this is the case, then it is doubtful that you will be able to
easily drive this directly through VBA. At best, you may be able to "print"
the document to PDF, as Word may see Adobe PDF as a printer.
If, as you say, there is an AdobePDFMakerforOffice object that is exposed to
VBA, then perhaps you would be better off contacting Adobe for information on
how to use it. It's not a MSFT product, so you would need to strike it lucky
to find someone in this forum with the knowledge you require.
--
Cheers!
Gordon
Uninvited email contact will be marked as SPAM and ignored. Please post all
follow-ups to the newsgroup.
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
Certainly Adobe used to use macros in a *.dot add-in up to version 6, which
it changed to a COM add-in in Version7. I think your best bet, if simply
printing to the Adobe driver doesn't cut it, would be to scour the Acrobat
forums and Google for insights - a start point could be
http://diaryproducts.net/for/programmer/adobe_acrobat_pdf_scripting_visualbasic_javascript
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP
My web site www.gmayor.com
Word MVP web site http://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Gordon Bentley-Mix wrote:
> Alistair,
>
> As far as I can tell from searching the MSFT site, Word 2003 doesn't
> support the creation of PDF files natively (altho Word 2007 does -
> albeit with some limitations). Therefore, I suspect that the
> functionality you are accessing through the 'Create PDF' menu item is
> being provided by a third-party application of some sort - Adobe PDF
> Maker, by the looks of your subject line. If this is the case, then
> it is doubtful that you will be able to easily drive this directly
> through VBA. At best, you may be able to "print" the document to PDF,
> as Word may see Adobe PDF as a printer.
>
> If, as you say, there is an AdobePDFMakerforOffice object that is
> exposed to VBA, then perhaps you would be better off contacting Adobe
> for information on how to use it. It's not a MSFT product, so you
> would need to strike it lucky to find someone in this forum with the
> knowledge you require.
>
Thanks again to all