VBA cannot be initialized

L

LarsErik.Miedema

This morning I opened a Visio template I've been working on for a
while now and I cant get to my VBA code anymore.
I'm getting the error :

"The operation cannot be performed because VBA is not installed or
could not
be initialized. You can continue running Visio."

I've tried some of my older backups, VBA editor loads in those.
Also tried a different computer, also get the same error.
Saved the file under a new name, same error.

Any thoughts on how to fix this, or just get my code back?!

- Lars
 
J

JuneTheSecond

I have met the same trouble yesterday,
and lost my VBA macro.
It took one day to restore from the old backup.
I think my fault may be the illegal looping due
to the assembly of DependsOn function in
shapesheet linked with VBA macro to check whether
the shape data is shape name or not. That macro
includes searching shape in a page by name
and raise error if not found.
 
J

JuneTheSecond

I am sorry, I found my thought was not correct.
The real reson was my wrong applying my own
digital signature to VBA macro.
I re-maked my own signature stlictly followig to
the instruction on Visio help. And now my VBA
macro seems still alive.
 
P

Paul Herber

This morning I opened a Visio template I've been working on for a
while now and I cant get to my VBA code anymore.
I'm getting the error :

"The operation cannot be performed because VBA is not installed or
could not
be initialized. You can continue running Visio."

I've tried some of my older backups, VBA editor loads in those.
Also tried a different computer, also get the same error.
Saved the file under a new name, same error.

Any thoughts on how to fix this, or just get my code back?!

Hello Lars
For a start (and this may depend a bit on which version of Visio you
are using ..)

menu Tools -> Options -> Security
and ensure all the VBA options are enabled.
 

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