SRL Archive - C#/Visual Basic Help and Tutorials

Determine Object Clicked VBA


Enslaved

2012-12-14 18:14:47

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

2012-12-14 18:17:52

I have never programmed VB or C# in powerpoint but if you can, try adding an event handler to each object.

Enslaved

2012-12-14 18:24:25

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?