How to start a macro automatically on next slide

C

Chris

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
 
J

John Wilson

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
 
C

Chris

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
 
B

Bill Dilworth

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
 
C

Chris

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
 

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