@#$% Macros

G

Guest

Macros can be such a pain. Ok, nough of my soap box.

I’m trying to use a macro to refresh a slide. I used numerous animations
and need to reset that slide. When I advance to the next slide, I would
think the previous slide’s animation would reset to the beginning…….but not
happening. If I close the show and re-open everything is fine.

Ok, now the question. How can you reset a slide without a Macro?

Steve
Using PP 2003
 
G

Guest

fltpro

Why don't you create a visual basic module which can then be called by
clicking on a shape or object.

To do this, open up the Visual Basic Editor (Alt +F11).

Insert a new module by 'Insert' then 'Module'

Paste this text into the box

Sub ResetSlide()

' The number after GotoSlide is the slide number.
SlideShowWindows(1).View.GotoSlide 2, msoTrue

End Sub

The Gotoslide advances the presentation to the appropriate slide and the
msoTrue bit resets all slide animations on that slide to the begining..

You can then call this code by setting a object to run it just as you would
call a macro to run:

From slide editor mode, right click object, select Action Settings, Select
Run Macro and then Select 'ResetSlide' from dropdown box.

This code can be called from any slide including the one you wish to reset.

Hope this helps

Ian
 
D

David M. Marcovitz

The common trick to resetting a slide without a macro is to put a blank
slide before the slide to be reset. Set the blank slide to advance
automatically after 0 seconds, and put all links to the blank slide
instead of the slide with animations. If you want to use macros, use the
GotoSlide method as John said, which has a parameter that tells it
whether or not to reset the slide.
--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/
 
G

Guest

Thanks, that was a BIG help!!

Steve

David M. Marcovitz said:
The common trick to resetting a slide without a macro is to put a blank
slide before the slide to be reset. Set the blank slide to advance
automatically after 0 seconds, and put all links to the blank slide
instead of the slide with animations. If you want to use macros, use the
GotoSlide method as John said, which has a parameter that tells it
whether or not to reset the slide.
--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/
 

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

Similar Threads


Top