L
landlord172
Could anyone help with this?
I've tried this method/function in the EventDblClick cell of the Events
section of a "Desktop PC" shapes Shapesheet like so :-
(EventDblClick Cell)
=CALLTHIS("testsub()")
I've put the corresponding Subroutine in a Module in VBA like so :-
(VBA)
Public Sub testsub(oShape as Visio.Shape)
MsgBox("Got to testsub")
End Sub
I get no response whatsoever, if I double click the shape to which I've
attached this. I've tried it with and without 'oShape as Visio.Shape', but
it still doesn't work.
If I change the EventDblClick cell to =RUNADDON("testprj.Module1.testsub")
and leave out the oShape argument then it works OK.
I'd like to get the CALLTHIS to work because it passes a 'shape object
reference' to the subroutine, which is very useful.
This is my first message/question to this site, so hello to everyone. It
seems like a friendly, helpful and knowledgable site.
Thanks in anticipation
Paul
I've tried this method/function in the EventDblClick cell of the Events
section of a "Desktop PC" shapes Shapesheet like so :-
(EventDblClick Cell)
=CALLTHIS("testsub()")
I've put the corresponding Subroutine in a Module in VBA like so :-
(VBA)
Public Sub testsub(oShape as Visio.Shape)
MsgBox("Got to testsub")
End Sub
I get no response whatsoever, if I double click the shape to which I've
attached this. I've tried it with and without 'oShape as Visio.Shape', but
it still doesn't work.
If I change the EventDblClick cell to =RUNADDON("testprj.Module1.testsub")
and leave out the oShape argument then it works OK.
I'd like to get the CALLTHIS to work because it passes a 'shape object
reference' to the subroutine, which is very useful.
This is my first message/question to this site, so hello to everyone. It
seems like a friendly, helpful and knowledgable site.
Thanks in anticipation
Paul