VBA references lost in 2003

P

Paul V

If you have a blank drawing with a stencil with macros and in VBA use Tools,
References... to set references to the stencil from the drawing and then
save, exit, and reopen the drawing, Visio 2003 SP1 loses the references
unless you have the Tools, Options, Editor "Require Variables Declaration"
switch checked. If you have that switch checked, the reference is remembered
but then you get the security warnings about macros even though there aren't
any macros in the drawing (as is noted in the 3/21/05 newbie II: new doc...
post)

In Visio 2002 SP2 the references are remembered regardless of the setting of
the "Require Variables Declaration" switch. If the switch is on you get the
macro warnings, it if is off you do not.

Am I missing something here? What is the expected behavior?

Paul
 
J

junethesecond

To me, it seems not the matter of "Require Variables Declaration" switch.
But, of course, I am not sure until I see how your code refers to stencil
from drawing.
 
P

Paul V

Stencil code is accessed through document level menus and toolbars set up by
stencil. The drawing to stencil reference is there only to get the
menus/toolbars to work.
 

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