RunnApp Macro Madness!!!

  • Thread starter Thread starter Yarlie
  • Start date Start date
Y

Yarlie

Guest
I've created a form, with command buttons, that once clicked should run a macro. With the macro, I want to open Word and then open a mail merge document. So in the Macro:
Action: RunApp
Command Line: winword.exe filename.doc

This opens Word, but not the document. The doc. is in the same directory as the database on my server ..
So far, I have written:
winword.exe \\domain name\drive name\folder name\filename.doc

winword.exe Z:\folder name\filename.doc

winword.exe filename.doc

None of these seem to work. Please tell me.....what am I doing wrong????????

TIA
Charlie
 
In the command line you must type in the full path name for both Winword.exe and your document - the latter must be in quotes.

E.g C:\MSOffice\Winword\Winword.exe "Z:\Your Folder Name\Your Document Name.doc"

HTH
 

Users who are viewing this thread

Back
Top Bottom