Macro Buttons in Presentations

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm running PPT 2003, and was wondering if it's possible to create macro
buttons in presentations. For instance, I'd like a button that, when clicked,
runs the commands "left cursor" and "spacebar". Greatly appreciate the help!
:-)
 
Hi John:

I'm looking to create a custom button that contains a custom macro instead
of the usual ones.
 
I'd like the macro to run "backspace" followed by "spacebar" as a button
inserted into the PPT presentation.
 
Macros on buttons will only run in a slide show. In a slideshow left cursor
followed by space would do nothing!

If you want the macro to run in edit mode you would need to write an add in
with command buttons.
 
Hi Tiki,
What John is trying to say is...if you are in slideshow mode and you press
<Backspace> followed by <Space> you will go back one slide, then forward one
slide.

There are other ways to do this with action settings, so is this what you
want to achieve?

Thus when John asked what you're trying to do he meant in the wider sense,
and not just what keys are you trying to emulate, so repeating the initial
question didn't really supply any additional information.

Are you, in fact, wanting to go back one slide and forward again?

Cheers,
Geoff
 
And if you simulate pressing those keys with a macro it will all happen in
microseconds so you see only a flash!
 
I understand that pressing the backspace key will go backward one slide, and
pressing the spacebar will advance one slide. However, when you add animation
to a particular slide, pressing these two keys will "rewind" the slide to the
beginning and "replay" it.

So ultimately, I want a button in the presentation that says "REPLAY". When
users see the slide in presentation mode, they watch the animation. And by
clicking "REPLAY", the user can "rewind" the slide to the beginning and
"replay" it.

And if it happens in microseconds, so much the better.
 
Got there in the end!

Try this:

Sub resetme()
Dim i As Integer
i = ActivePresentation.SlideShowWindow.View.CurrentShowPosition
ActivePresentation.SlideShowWindow.View.GotoSlide i, msoTrue
End Sub

Note this will rewing to the start of the slide pressing left cursor won't.
 
I understand that pressing the backspace key will go backward one slide, and
pressing the spacebar will advance one slide. However, when you add animation
to a particular slide, pressing these two keys will "rewind" the slide to the
beginning and "replay" it.

So ultimately, I want a button in the presentation that says "REPLAY". When
users see the slide in presentation mode, they watch the animation. And by
clicking "REPLAY", the user can "rewind" the slide to the beginning and
"replay" it.

You could, I think, put a duplicate of the current slide immediately prior to it,
remove all animations and all shapes that will animate on. In other words, create
a new slide that looks just like the *real* slide when it first appears.

Then set it to transition automatically to the next slide after 0 delay.

On your *real* slide, put a back button or a link to the previous slide.

When the user clicks the link, it'll back up one slide, advance immediately to the
next slide (because of the immediate transition) and since it's transitioning to a
slide that looks exactly like it, there'll be no visible transition at all.

And the animations will reset.

And it'll work w/o macros, so it works in the viewer and in PPT installations where
macros are locked out.
 
Back
Top