VBA Macros not accessible

VBA Macros not accessible

Post by dWRv » Sun, 06 Apr 2008 22:53:02


After some analysis I found out that the problem is related to the Autosave
cycle on Vsio 2007. Doing the same procedure on Visio 2003 does not result in
VBA functuality loss and loss(!) of VBA code.


This is what I have done to reproduce the error.

Visio 2003:
Start a copy of the working file.
Execute the macro.
Wait for the Autosave cycle.
Close the file -> Message window appears and asks to save the file -> Yes
Restart the file. No Problems. Macros are working, VBA Environment is
accessible. :)

Visio 2007:
Start a copy of the working file.
Execute the macro.
Wait for the Autosave cycle.
Close the file -> Message window appears and asks to save the file -> Yes
Restart the file. BIG PROBLEMS! Macros are NOT working, VBA Environment is
NOT accessible. :(
ERROR MESSAGE when trying to execute macros or accessing VBA environment:
"The operation cannot be performed because VBA is not installed or could not
be initialized. You can continue running Visio."

Note (Visio 2007): If I save the file before the Autosave cycle, no
problems...

Note 2:
Maybe it is related to some of my macro operations which are interpreted
differently in Visio 2003 and 2007. Trying to reproduce this with a "Hello
World" macro does not cause any problems.

Help is highly appreciated! ;)

Thanks,

Udo
 
 
 

VBA Macros not accessible

Post by Paul Herbe » Tue, 08 Apr 2008 00:12:20

On Sat, 5 Apr 2008 06:53:02 -0700, udo < XXXX@XXXXX.COM >



Your Visio 2007 default file save format, check that it is "Visio
Document", not an old format i.e. Visio 2002 format or the XML format.
Neither of these save digital signature information. That might cause
a problem




--
Regards, Paul Herber, Sandrila Ltd.
Electrical for Visio http://www.yqcomputer.com/

 
 
 

VBA Macros not accessible

Post by dWRv » Sat, 12 Apr 2008 03:58:02

Thanks Paul,

I will take a look.

udo