PDA

View Full Version : Determine Object Clicked VBA



Enslaved
12-14-2012, 11:14 PM
ok so here is the question
How do i determine which shape was clicked if they all execute the same macro in a Powerpoint presentation. using the
Sub Name(abc as Shape)
Debug.Print abc.Name
End Sub

doesnt seem to work

Brandon
12-14-2012, 11:17 PM
I have never programmed VB or C# in powerpoint but if you can, try adding an event handler to each object.

Enslaved
12-14-2012, 11:24 PM
The only Reason I want to do this is so i can cut back on the code involved,
64 Buttons require annoying procedures and takes even longer to hook up/debug, what about passing parameters to Macros when calling, cant seem to do that, anyone know how?