Shape Sheet event call to procedure in a Stencil

G

goldnhue

In the shape sheet, I have the following double click event that calls a
procedure located in a module called "PQMS".

=RUNADDON("PQMS.SetSwimLane")

It works fine when the PQMS module is located in the document.
But when I move the PQMS module to the stencil, the shape sheet RUNADDON
function no longer works.

Please advise how to call a procedure located in a stencil from within a
shape-sheet event.

Thank you in advance.
 
D

David Parker

Use CALLTHIS eg
=CALLTHIS("PQMS.SetSwimLane","MyProject")
You will need to have at least one parameter (a shape) in the SetSwimLanesub
though
eg

Public Sub SetSwimLane(ByVal shp as Visio.Shape)
'...code here
End Sub
 
G

goldnhue

Thank you. That did it.
(I had tried =CALLTHIS this before, but left out a parameter in the
SetSwimLanes sub)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top