Re: Automating creation of a PDF document from Word via VBA



Graham,

I posted a related inquiry over in the VBA-General Newsgroup. My idea there
was to brute-force a solution by passing the keystrokes for the document
name straight into the PDF-Creating dialog box - sorta like we used to do
with the "original" macros back in the Days of DOS.

I got a one-word response from "Steve Hudson - Word Heretic":

=========
SendKeys
=========

OK, I've looked this up on
http://msdn.microsoft.com/library/?url=/library/en-us/script56/html/wsmthsendkeys.asp
and, at first blush, this looks like a hopeful solution.

Do you have any experience with this? If it won't work, I'd sure like to
know it before I waste time hammering away.

Rick Rodgers


"Graham Mayor" <gmayor@xxxxxxxxxxxxxxxxxx> wrote in message
news:eGtkv2KeFHA.3280@xxxxxxxxxxxxxxxxxxxxxxx
> The Adobe macros are not accessible for editing and will always prompt for
> the filename (while offering the original document name) I see no way to
> by-pass that without access to the Adobe code. Printing to the Adobe
> driver
> *may* be possible but my attempts to introduce the filename in vba code
> still results in a stop at the filename screen.
>
> --
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
> Graham Mayor - Word MVP
>
> My web site www.gmayor.com
> Word MVP web site http://word.mvps.org
> <>>< ><<> ><<> <>>< ><<> <>>< <>><<>
>
>
>
> Amedee Van Gasse wrote:
>> rtrsr shared this with us in microsoft.public.word.docmanagement:
>>
>>> I can't find a PDF creation system (at least one that I can afford)
>>
>> There you have it. I believe this /should/ be possible (not sure,
>> didn't try it) with the full Adobe Acrobat. It installs some macros,
>> and I would be surprised if those macros couldn't be used in some way.
>
>


.



Relevant Pages

  • Re: Automating creation of a PDF document from Word via VBA
    ... the filename I see no way to ... by-pass that without access to the Adobe code. ... Word MVP web site http://word.mvps.org ... It installs some macros, ...
    (microsoft.public.word.docmanagement)
  • Re: My normal template keeps changing.
    ... Judy, you're not the only one experiencing this, I've been having the same ... AutoText, AutoCorrect, keyboard assignments, toolbars, macros, etc. ... I only have Adobe ... Reader, not the writer, and no toolbar was ever installed in Word, so I'm ...
    (microsoft.public.word.application.errors)
  • Re: Macro to print to PDF and save using bookmark name
    ... I came across a code on the internet for printing to Adobe Distiller. ... Sub pdf() ... 'Define the path and filename ... Active document is printed in PDF format (usually this involves ...
    (microsoft.public.word.vba.general)
  • Re: Word/normal.dot/Toolbars problem??
    ... Is Adobe Acrobat 7.0 installed on the computer? ... macros and toolbar customizations are stored). ... "Jay Freedman" wrote: ... I then went into the Tools, Template and Add-Ins and did not see the ...
    (microsoft.public.word.vba.general)
  • Re: Macro to print to PDF and save using bookmark name
    ... I came across a code on the internet for printing to Adobe Distiller. ... Sub pdf() ... The easiest way to deal with the filename would be to save the file with the ... Active document is printed in PDF format (usually this involves going ...
    (microsoft.public.word.vba.general)