Run macro automatically in Powerpoint

  • Thread starter Thread starter Patrick
  • Start date Start date
P

Patrick

How can I run automatically macro when the presentation
is opened ?

In Word I simply put my code in a AutoExec macro or call
it throught command line like: " WINWORD.EXE /q /mymacro
file.doc "

Powerpoint seems not to follow the same structure and
contains less command line switches.

Thanks in advance,
Patrick
 
Patrick,
You can't. You might want to take a look-
http://www.mvps.org/skp/ppafaq.htm. Two auto execute VBA procs in PPT are
Auto_Open & Auto_Close. However, quite unlike Word & Excel, these execute
automatically only within
an add-in.

Auto_Open: when you load the add-in
Auto_Close: when you unload the add-in

If you are using PowerPoint 2000 or later create your own event handler
add-in or you can try my free AutoEvents Addin. The add-in is designed to
execute the certain routines automatically if present in the presentation.
You can download and learn more about it from
http://www.mvps.org/skp/download.htm

--
Regards
Shyam Pillai

Handout Wizard
http://www.mvps.org/skp/how/
 
Back
Top