View Single Post
 
Old 02-24-2013, 12:06 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by jdorin View Post
can a switch specifying the name of the macro it is to execute be appended to the end of the command line in a Desktop shortcut that invokes Word? Will Word open and then run the specified macro?
Yes. See discussion of the /m switch at: http://support.microsoft.com/kb/210565

However, you might do better just to add a Document_Open macro containing the required code to the document's 'ThisDocument' module. That way, only the particular document is affected, rather than the whole Word session.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote