saadamiens
01-27-2012, 02:09 AM
hello everyone ,
I would like to create an event handler in such a way that when i double click a shape on a slide , a messagebox is fired and give me the name of that shape.
I have created a class called cEventClass with this private sub
Private Sub application_WindowBeforeDoubleClick(ByVal Sel As Selection, ByVal Cancel As Boolean)
MsgBox Sel.ShapeRange.Name
End Sub
and the following module to launch the event handling
Dim cPPTObject As New cEventClass
Sub TrapEvents()
Set cPPTObject.PPTEvent = Application
End Sub
The problem i have is that it doesn't give me the name of the shape once i double click it , what sould i do?
Thank you
I would like to create an event handler in such a way that when i double click a shape on a slide , a messagebox is fired and give me the name of that shape.
I have created a class called cEventClass with this private sub
Private Sub application_WindowBeforeDoubleClick(ByVal Sel As Selection, ByVal Cancel As Boolean)
MsgBox Sel.ShapeRange.Name
End Sub
and the following module to launch the event handling
Dim cPPTObject As New cEventClass
Sub TrapEvents()
Set cPPTObject.PPTEvent = Application
End Sub
The problem i have is that it doesn't give me the name of the shape once i double click it , what sould i do?
Thank you