Hi, can anyone tell me if there is a way for my visio vba code to tell if there is 1 or more other visio files open (when you don't know what they are called)? I know it sounds like a simple thing to be able to do but I don't know how to start and can't find any references, any suggestions would be very welcome, thanks, Matthew
Do you mean, open in the same Visio application?
yes, sorry for not being clear, multiple files in the same application
All these documents are open in single Visio application session?
Quote from: matthew on November 13, 2020, 07:03:43 PM
yes, sorry for not being clear, multiple files in the same application
Then you can just check the collection of documents, it will list all open documents:
For Each doc In Application.Documents
Debug.Print doc.FullName
Next
and the current document is:
ActiveDocument.FullName
thanks, works great, much appreciated
Matthew