Referencing Visio from VBS

T

TomTom

Hi,

I am trying to find a way to reference Visio from a VBS script. I know I can
reference Visio object from the add reference dialog in VBA, but not sure if
I can do it from VBS (WHS). If you know how to do it, can you let me know?

Thank you.
Tomtom
 
D

David Parker

Would this do it for you?

Set vsoApp = createobject("visio.application")

or

Set vsoApp = getobject(,"visio.application")
 
T

TomTom

Thank you. It worked!

David Parker said:
Would this do it for you?

Set vsoApp = createobject("visio.application")

or

Set vsoApp = getobject(,"visio.application")

sure
 

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