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

  • Thread starter Thread starter Dave N
  • Start date Start date
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!
 
I haven't tried this in a slideshow, but this works for me
otherwise.... strName = ActiveWindow.Selection.ShapeRange
(1).Name

Hope this helps.
 
Back
Top