Hello all.
I have done some searching on the forum and found bits and pieces, but not the answer. Or at least enough to help me with my issue.
I want to create a Macro to cause Word 2007 to print a document. I do not want Word to open and display a document.
I have tried a number of different combinations in the Activate/Launch Program window.
One of the messages I get is specified file does not exist. Once I actually got Word to open, but it would not print based on the command-line switch /p.
If someone could get me pointed to a previous forum article discussing this, or suggest a sample, I would really appreciate it.
My program is C:\Program Files\Microsoft Office\Office12\Winword.exe.
My file is D:\BobsData\My Word\Computer\Sample Print.docx.
I understand that we can just put the file name in the Program/Path name and use the file association to open the file.
But if you don't specify the program, how do you specify command-line switches.
I want to use switches /p /n /q for Word (print, no new document, no splash) but even when I put them in Program Parameters, it does not seem to take.
I have tried with and without quotes.
I'll keep working at it.
Appreciate any help, and thanks in advance.
Bob