how can I eliminate a deleted macro ?

C

Cristian Secara

I tried to setup a macro. I first created it, then I erased it.

Now, each time I open the .vsd file, the macro virus warning appears. Of
course I can disable the macro virus protection, but I don't want to do
that.

How (where) can I totally erase any trace of my own macro attempt ? Its name
is no longer listed in the Macro... menu (Alt+F8).

Thank you.
Best wishes,
Cristi
 
J

John Marshall, MVP

The SaveAs will not work, but the wiseman Graham has a few suggestions in
his book "Visio 2002 Developer's Survival Pack".

1) Save in XML format; use a text editor to delete the Project Section;
Reopen in Visio and save as a regular Visio file.

2) Disable VBA using Tools>Optios> Advanced; Open the problem drawing; Set
up a shape with an action tht fires the command.
SomeActionCell = DOCMD(1590)
Run that command
Save your now-project-free document
Don't forget to renable VBA.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
 
C

Cristian Secara

[...] "Visio 2002 Developer's Survival Pack".
1) Save in XML format; use a text editor to delete the Project Section;
Reopen in Visio and save as a regular Visio file.

I am using Visio 2000 SR-1. This one seems to have no .XML export option.
Sorry I have not mentioned my version of Visio from the beginning.
2) Disable VBA using Tools>Optios> Advanced; Open the problem drawing; Set
up a shape with an action tht fires the command. [...]

Ok, I will try that.
Thank you for your fast answer.
Best wishes,
Cristi
 
J

John Marshall, MVP

If that does not work woth Visio 2000, you could upgrade or find someone
with Visio 2002 to remove the macros for you.

John... Visio MVP

Need stencils or ideas? http://www.mvps.org/visio/3rdparty.htm
Need VBA examples? http://www.mvps.org/visio/VBA.htm
Common Visio Questions http://www.mvps.org/visio/common_questions.htm
Cristian Secara said:
[...] "Visio 2002 Developer's Survival Pack".
1) Save in XML format; use a text editor to delete the Project Section;
Reopen in Visio and save as a regular Visio file.

I am using Visio 2000 SR-1. This one seems to have no .XML export option.
Sorry I have not mentioned my version of Visio from the beginning.
2) Disable VBA using Tools>Optios> Advanced; Open the problem drawing; Set
up a shape with an action tht fires the command. [...]

Ok, I will try that.
Thank you for your fast answer.
Best wishes,
Cristi
 

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