How to get shape's name into a variable for work, upon mouse click, w/VBA?

D

Dave N

I've tried a number of different ways of doing this using
code examples that I've searched, but I can't seem to get
the hang of it yet. Any help is greatly appreciated.

There are 36 autoshape action buttons on the main slide.
They are named 1-36.

During the pesentation, upon clicking that shape, I'd like
to run a sub that would assign the Val of shape.name to a
variable as int. That variable would then be used to GoTo
the slide with that same number. I would also have the
option to make the shape invisible once returning to the
main slide.

How can I grab that shape name when the shape is mouse-
clicked during the presentation?
Thanks!
 
C

Clare

I haven't tried this in a slideshow, but this works for me
otherwise.... strName = ActiveWindow.Selection.ShapeRange
(1).Name

Hope this helps.
 
D

Dave N

Thank you. 'ActiveWindow.Selection.' doesn't seem to work
in the slide show view.
 

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