vba - run macro when start from presentation -


i want run macro when open presentation. try using following:

sub auto_open()      dowhatiwant  end sub 

it works... if open powerpoint powerpoint icon. want run macro when open presentation making double click on presentation want open.

powerpoint won't run auto_open code when open presentation, when add-in loads.

you can have add-in trap event that's fired when user opens new presentation , have run code (perhaps after determining whether code should run based on presentation).

or pptm presentation might include ribbonx calls vba routine.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -