Auto run macro

T

tcbootneck

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

Thanks
 
D

David M. Marcovitz

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/
 
T

tcbootneck

Thanks for the tips. Unfortunately I have a locked down system. Could I
assign a hot key to the code eg Ctrl + ?
 
T

tcbootneck

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
 
J

John Wilson

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
 

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