Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / September 2007

Tip: Looking for answers? Try searching our database.

How to start a macro automatically on next slide

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chris - 24 Sep 2007 15:08 GMT
I would like to start a macro when you move to the next slide, at present I
can only start the macro using a button.  The macro controls some external
equipment that I want to exercise alongside the presentation without my
interaction.

Thanks
Chris
Bill Dilworth - 24 Sep 2007 15:53 GMT
You will need to create an event trap or use one of the ready-made event
trap add-ins.  Here is a faq with more info:

Make PPT respond to events
http://www.pptfaq.com/FAQ00004.htm

Signature

Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@     Please read the PowerPoint FAQ pages.
yahoo.             They answer most of our questions.
com                 www.pptfaq.com
.

>I would like to start a macro when you move to the next slide, at present I
> can only start the macro using a button.  The macro controls some external
[quoted text clipped - 3 lines]
> Thanks
> Chris
John Wilson - 24 Sep 2007 16:20 GMT
As Bill says if you are confident with events this is the way to go.

But if you aren't you could try this sneaky trick. Have a full screen 99%
transparent (ie invisible) shape appear at the start of the slide with custom
animation. Give it an action setting of MOUSEOVER> run macro. This will work
best in kiosk mode or if you press ctrl A at the start of the presentation
Signature

Amazing PPT Hints, Tips and Tutorials-
http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk

> I would like to start a macro when you move to the next slide, at present I
> can only start the macro using a button.  The macro controls some external
[quoted text clipped - 3 lines]
> Thanks
> Chris
Chris - 24 Sep 2007 19:10 GMT
I have created an event trap that I start on the first slide.  I then
execute code on the slideID.  If I execute a simple message box then
everything works okay and the presentation can loop and the code executes on
every pass.  However if I execute my code that drives some external equipment
(takes about 10s to complete) then on the next loop the event is not captured
and I have to restart the event trap again.  I have tried to add a call to
the event trap when my code terminates, although it confirms the active
state, it still does not seem to work.

Any ideas?  Many thanks

Chris
Bill Dilworth - 24 Sep 2007 23:31 GMT
Often, if the code encounters an error, it will simply stop working.  Try to
insert a simple error trap that pops a message box.  See if this helps
narrow down the problem.

Bill Dilworth

> I have created an event trap that I start on the first slide.  I then
> execute code on the slideID.  If I execute a simple message box then
[quoted text clipped - 11 lines]
>
> Chris
Chris - 25 Sep 2007 08:40 GMT
Yup, I had an 'end' statement right at the end of my code for no reason.

Thanks for all your help - everything is now working perfectly.

Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.