How to tell if there are other visio files open?

Started by matthew, November 13, 2020, 05:40:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

matthew

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

Nikolay

Do you mean, open in the same Visio application?

matthew

yes, sorry for not being clear, multiple files in the same application

Surrogate

All these documents are open in single Visio application session?

Nikolay

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

Paul Herber

and the current document is:
ActiveDocument.FullName
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

matthew