How can I lunch a macro from VbScript?

R

Rad

Thanks,
I am unable to excute it from VBScript:
' Set the variable (runs new instance of VISIO).
Set oVISIO = CreateObject("visio.Application")
set newdoc =oVisio.Document
set newdoc1 = oWord.Documents.Add("")

newdoc1.ExecuteLine("RS_Visio_Script.NewMacros.Macro2")

Would you please explain why it is not runing?

Thanks,
Rad
 
A

Al Edlund

where did you create the word object....
al

Rad said:
Thanks,
I am unable to excute it from VBScript:
' Set the variable (runs new instance of VISIO).
Set oVISIO = CreateObject("visio.Application")
set newdoc =oVisio.Document
set newdoc1 = oWord.Documents.Add("")

newdoc1.ExecuteLine("RS_Visio_Script.NewMacros.Macro2")

Would you please explain why it is not runing?

Thanks,
Rad
 

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