Visio, IE and VBScript

C

ClaireS

Hi,

Does anyone know if it is possible (directly or using some workaround) to
detect when a shape has been added to the page in Visio ActiveX control
embedded in IE browser? So, when a shape has been added, do something....

How do I trap the shape added event in VBScript? Is it possible?

Thanks,
Claire
 
C

Chris Roth [ Visio MVP ]

I haven't done much VBScript, but this is how you do it in VB:

Dim WithEvents pg As Visio.Page
Set pg = Visio.ActivePage ' for you, something like VisAX.ActivePage???

' Now you will have an event for the page when a shape is dropped
Private Sub pg_ShapeAdded(ByVal Shape As IVShape)

End Sub

--

Hope this helps,

Chris Roth
Visio MVP
 

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