A
Andre Rosenthal
hello
I have several Visio Macros performing work on shapes. I am trying to drive
these macros from an excel macro using the following code:
public Sub DriveVisio()
Dim visioApp As Visio.Application
Set visioApp = New Visio.InvisibleApp
Dim visioDoc As Visio.Document
Set visioDoc = visioApp.Documents.Open("C:\visio test.vst")
Dim visiopage As Visio.page
Set visiopage = visioDoc.Pages("Page-1")
visioDoc.ExecuteLine ("MainModule.CustomCommandHandler 100")
visioDoc.Close
visioApp.Quit
Set visioDoc = Nothing
Set visioApp = Nothing
End Sub
The code dies at ExecuteLine and I have been unable to find an equivalent
solution for this problem.
Does anyone out there knows a possible solution?
TIA,
Andre.
I have several Visio Macros performing work on shapes. I am trying to drive
these macros from an excel macro using the following code:
public Sub DriveVisio()
Dim visioApp As Visio.Application
Set visioApp = New Visio.InvisibleApp
Dim visioDoc As Visio.Document
Set visioDoc = visioApp.Documents.Open("C:\visio test.vst")
Dim visiopage As Visio.page
Set visiopage = visioDoc.Pages("Page-1")
visioDoc.ExecuteLine ("MainModule.CustomCommandHandler 100")
visioDoc.Close
visioApp.Quit
Set visioDoc = Nothing
Set visioApp = Nothing
End Sub
The code dies at ExecuteLine and I have been unable to find an equivalent
solution for this problem.
Does anyone out there knows a possible solution?
TIA,
Andre.