Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
rtrsr
 
Posts: n/a
Default Automating creation of a PDF document from Word via VBA

Is there a VBA routine that would allow me to pass keystrokes into an active
document -- as if they had been entered by a user?

I'm trying to create a routine that creates (automatically) a PDF copy of
the currently active document. The goal is to produce a PDF image of the
active document that (1) bears the filename of the active document (without
the ".doc", of course) and (2) is written in the currently active document's
folder - just by having the user invoke a hotkey or press a custom button on
the button bar.

My problem is getting VBA to pass the current document's name into the
PDF-creation system's dialog box.

I can't find a PDF creation system (at least one that I can afford) that
will let me pass the document name to it as an argument. So I propose to
"brute force" around this by simply sending the same keystrokes a user would
type into the dialog box as if they were generated from the keyboard.

I know. This is old-fashioned DOS macro programming.... I'll let you laugh
at me if you can tell me how to get VBA to do the same thing [grin]!

Rick


 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please give us REVEAL CODES like WORD PERFECT not reveal codes in. Rachel King Microsoft Word Help 38 August 21st 09 09:54 PM
Word 2003 [email protected] Microsoft Word Help 39 April 19th 06 06:35 PM
Macros - Keyboard Commands Janet Microsoft Word Help 6 April 11th 05 05:28 AM
Locking Two Words Together to Make a Proper Compound Noun in Word WorkingWoman Microsoft Word Help 2 April 7th 05 02:33 PM
Boiletplates from Word Perfect linda Microsoft Word Help 1 January 28th 05 05:37 PM


All times are GMT +1. The time now is 03:53 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"