If application is already open, how do I close it and start a new one????
In my program, I want to open a visio file but if it is already open, I want to close it and open a new version of the file. Here's the code that I currently have. I run into problems if the application is already open.
If IsNothing(VisioApplication) Then
VisioApplication = CreateObject("visio.application")