Opening a Visio document with visOpenMacrosDisabled

A

Andy

I am running automation in a Visio document. In this I am attempting to
open another visio document using OpenEx with the visOpenMacrosDisabled
as I don't want the vba in it to be run. However, as soon as it opens
my application vba also stops.

Is this possible?

Thanks
 
A

Al Edlund

if your question is can you stop code execution at a document level (i.e.
two documents open simultaneously both with executable code), AFAIK no,
al
 
A

Andy

No, I'm not looking at both executing at the same time. What I want is
my currently active document to be able to open another document (that
contains VBA) to modify some documentsheet settings without that
documents associated VBA running.
 
A

Andy

Maybe it would be better if I say what I am trying to achieve.

I am using Visio with automation and my application is intended to keep
running for long periods. Periodically, I need to take historical
snapshots of my diagram and an associated spreadsheet. My application
takes a copy of the diagram and spreadsheet files. I then need to set a
property in the copied document such that if it is run it is marked as
a snapshot.
 
A

Al Edlund

I believe I understood what you are attempting. As I understand it you are
attempting to open multiple documents simultaneously in the same Visio
application space (which as I understand it supports one iteration of VBA).
So when you turn off automation it is turned off for all active documents
(the original and any additional ones opened) in the space. maybe somebody
else has more insight.
al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top