In PowerPoint, can I create a button that captures the slide number it's on

I'm trying to create a VBA module such that, when a button is clicked, it will trigger a shape to fade in. I want to make it such that there is one of these buttons on every slide of the presentation, but every button will only trigger the shape on the same slide that the button is on. Is that possible, or do I need to create separate modules for every button?

I was thinking maybe you could use "Dim" and do something like

Sub FadeInShape()
    Dim x as [the slide number of the slide on which the button was clicked]

but I don't know what that object would be called or if that object even exists.

Upvotes: 0

Views: 78

Answers (1)

John Korchok
John Korchok

Reputation: 4913

Use a Trigger on a shape to start the animation. No VBA required:

enter image description here

Upvotes: 2

Related Questions