Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-03-2013, 07:01 AM
jdockstader jdockstader is offline From the command line, how do I run a Word macro? Windows 7 64bit From the command line, how do I run a Word macro? Office 2007
Novice
From the command line, how do I run a Word macro?
 
Join Date: Feb 2013
Posts: 4
jdockstader is on a distinguished road
Default

Thanks for the response.


When I do
"C:\Program Files (x86)\Microsoft Office\Office12\winword" /t"C:\Custom.dotm" /w /q
Word opens up with a blank file and I can see the macro.

When I add the file I want to print
"C:\Program Files (x86)\Microsoft Office\Office12\winword" /t"C:\Custom.dotm" /w /q "C:\Users\jdockstader\Documents\10109 Router.docx"
Word opens up with the file but there are no macros.

When I do (switching from /m to /l)
"C:\Program Files (x86)\Microsoft Office\Office12\winword" /l"C:\Custom.dotm" /w /q "C:\Users\jdockstader\Documents\10109 Router.docx" /m"SaveAsPDF1"
Word opens up with the file and I can see the macro but it isn't executing.
Reply With Quote
Reply

Tags
command line, macro vba word



Similar Threads
Thread Thread Starter Forum Replies Last Post
From the command line, how do I run a Word macro? Command line syntax for 2010 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

Other Forums: Access Forums

All times are GMT -7. The time now is 11:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft