Set AppVisio = CreateObject("visio.InvisibleApp")
Set vsoDoc = AppVisio.Documents.Open("PathName\Drawing1.vsd")
Set vsoDoc = Nothing
set AppVisio = nothing
I have the following code in a VBS/VB Script file which works to open another Visio file. The issue seems to be that it is not working when the file was already opened. Currently if file is open, it runs but does not call the macro (in the code)
Is there a one liner/force close the specific
file if it was opened by the user already?