Automatically run a macro in powerpoint

A

annie

I tried to run a macro automatically when the ppt opens by changing the
subroutine's name to Auto_Open.But its not working.
Any help is appreciated.
 
J

John Wilson

Hi annie

Auto Open will only work in an Add In in PowerPoint *(AFAIK)

We are playing with code like this which seems to work so far but no
guarantees!

Sub OnSlideShowPageChange()
If ActivePresentation.SlideShowWindow.View.CurrentShowPosition = 1 Then
MsgBox "This is where the code goes"
End If
End Sub

There's also this
"Make code run as part of animation sequence"
http://www.pptalchemy.co.uk/powerpoint_hints_and_tips_tutorials.html#vba
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top