Make sure you are running a macro-enabled version of the presentation (in 2016 it has the. "C:\Program Files (x86)\Microsoft Office\root\Office16\POWERPNT.EXE" M "C:\myPPTpres.pptm" "Run_Slide_Show" to the end of the existing text in the Target field. My presentation is C:\myPPTpres.pptm and the macro is Run_Slide_Show so I will need to add Next, add the /M switch, your presentation file name (including path), and the name of the macro to run (case sensitive and must be part of the presentation) to the end of the Target field. Then go to the Properties window for the shortcut and select the Shortcut tab. The easiest way to do this is to create a shortcut to the PowerPoint application. Start PowerPoint from command line and use the /M switch to have PowerPoint run a specified macro when it starts a named presentation file. This method DOES NOT require any add-ins or application hooks to handle events. I am using PowerPoint 2016 so I can't speak for earlier versions although the documentation indicates this works for PowerPoint versions 2016, 2013, 2010, 2007.
0 Comments
Leave a Reply. |