News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

VBA Fail to initialise or not installed Visio 2007

Started by cliff50, March 21, 2011, 02:08:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cliff50

I have visio 2007 and 2003.

in visio 2007 have a .VSD document with VBA code and security password to enter that area.

Visio 2007
scenario #1
1 Open the doc
2 run macros  ( no errors)
3 save doc
4 can open it again no errors

Visio 2007
scenario #2
1 Open the doc
2 run macros  ( no errors)
3 Tools-> macros -> password enter VBA environment
4 DONT compile the VBA environment (even though I change nothing)
5 save doc
6 reopen the doc and try to open the VBA area .. its says  "VBA Fail to initialise or not installed "

This is perculiar to Vis 2007  .. Vis2003 and 2002 do not react this way.
the only way I can avoid this is to ensure that the VBA environment is compiled every time before a save.

it seems the moment you "crack" into the VBA area of Vis2007 you must complie it before saving else you will never be ablke to open it again.

anyone else have similar problem?

cliff50

reference to Visio pro 2007
still trying to fault find this one, my gut feel its in the reference libraries.
When I uncheck "Microsoft outlook 12 library..." the app become more. I can't say entirely stable because I have to do many repeats under all circumstances to be 100% correct.
But I know there are a few developers out there that have noted this problem.

also if you hit a debug in the code at any time during run time you must compile before save.

Browser ID: smf (possibly_robot)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 146 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1004KB.
Tokens: post-login.
Cache hits: 13: 0.00176s for 26,722 bytes (show)
Cache misses: 3: (show)
Queries used: 17.

[Show Queries]