![]() |
#1
|
|||
|
|||
![]()
As part of a workflow in a PDM system, I have to convert a Word file to PDF. I've written a macro that will save the PDFs and close Word. I can't put that macro in every users Normal.dotm file so I need to be able to load it from a shell command. I saved my macro, SaveAsPDF, in a Custom.dotm and I can put that in a shared location (during testing it's on my c: drive)
When I execute the command "C:\Program Files (x86)\Microsoft Office\Office12\winword" /l"C:\Custom.dotm" /w %filename% /mSaveAsPDF Word opens with the file and the macro is present but doesn't execute. I've tried using /t instead of /l to load the macro containing template but it doesn't seem to work at all. |
Tags |
command line, macro vba word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
asearle | Word | 1 | 08-07-2012 05:42 AM |
Word doc bug when closing from userform command button click macro | Joe Patrick | Word | 1 | 07-05-2011 08:53 PM |
Invoking a command line from inside Word | bolpom | Word | 1 | 03-16-2011 03:03 AM |
Command Line Argument | xJediDadx | Outlook | 1 | 02-21-2011 03:47 PM |
Command Line Switches | Ringmaster | Office | 0 | 08-10-2010 06:27 AM |