Auto run macro

  • Thread starter Thread starter tcbootneck
  • Start date Start date
T

tcbootneck

I normally use sub auto_open() in Excel. What is the code to run a piece of
code when opening PowerPoint?

Thanks
 
I normally use sub auto_open() in Excel. What is the code to run a
piece of code when opening PowerPoint?

Thanks

Unfortunately, it's not as easy to do in PowerPoint. It must be done with
an add-in, which must be installed on each machine using it. Here are the
details:

How can I get my code to run automatically when a presentation opens?
http://www.pptfaq.com/FAQ00741.htm


--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
Thanks for the tips. Unfortunately I have a locked down system. Could I
assign a hot key to the code eg Ctrl + ?
 
Hi

Anytime really. It's to do name signs to a template. Once the code is
running it's fine. I just need a trigger.

I think that my company PC is so locked down that certain things won't work,
which will mean that everybody elses will be the same.

Thanks
 
You could maybe try this code then. If you insert the code you need to run
where the message is it should run as slide 1 shows.

Sub OnSlideShowPageChange()
Dim i As Integer
i = ActivePresentation.SlideShowWindow.View.CurrentShowPosition
If i <> 1 Then Exit Sub
MsgBox "Your code goes here"
End Sub
--
Amazing PPT Hints, Tips and Tutorials

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