Pesty Macro Security Warning in Visio 2003 doc just won't go away! Argh!

Posted on 2007-10-10
Medium Priority
Last Modified: 2012-05-05
I'm running Visio 2003 Pro.  I created an empty Macro in a visio doc. Now everytime I open the visio file, I get an annoying Macro security warning. So I delete the macro hoping to get rid of this warning. Nope, it persists. Anyone know how to get rid of the Macro security warning? I would think getting rid of the macros would do it, but no, that would be too easy, wouldn't it?  In fact, if I create even a blank visio, then add a blank empty macro and save the doc, then open it, I'll get this pesty warning. Ok, so then I delete the macro, save it and open it again - I get the warning. Now, I know I can copy/paste everything to a brand new empty visio doc, but in this case, my visio doc is 30 pages big with custom props, a custom shapes sheet and an attachment to a database, so it would be a hassle to do it. If there's a quicker way to get rid of this ridiculous warning, I'd like to know how. Please save me from this Microsoft insanity!
Question by:umbasa
  • 3
  • 2
LVL 59

Expert Comment

by:Chris Bottomley
ID: 20054566
Useless facts:

2000 - No probs
2002 - Same Issue

If it is the same then I have found that in 2002, deleting everything from thisdocument, (i.e. option explicit as well - I default with it on) removes the warning.

Can't say if it is the same in 2003.



Author Comment

ID: 20056181
Not sure what you mean by "option explicit as well"?

And i forgot to mention that this visio is in a company shared folder, so if the solution were to change the security level of the visio app, that would work for just me, as I can't change the security level of everyone's computer's visio app unless I talk to AD folks about a major GPO.
LVL 59

Expert Comment

by:Chris Bottomley
ID: 20058341
At the top of my thisdocument there is some text, doesn't really matter what it is.  Have you deleted all text from this document and any user modules from the environment.

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

LVL 59

Expert Comment

by:Chris Bottomley
ID: 20168009

Any more on the issue?

LVL 31

Accepted Solution

Scott Helmers earned 2000 total points
ID: 20173210

The answer to your problem is that deleting a macro through the Visio UI does delete the macro, but it doesn't delete the container that holds macros. Even though the container is empty, it still triggers the macro warning.

The problem is easy to solve.

1) With your drawing open, type ALT+F11, which opens the Visual Basic Editor.

2) In the Project pane in the upper left, expand the folder called "Modules" by clicking on the plus sign to its left.

3) In that folder you'll see an entry called NewMacros if you created your macro with the macro recorder.  If it has a different name, that's not a problem.

4) Right-click on NewMacros and select "Remove NewMacros"

5) In the next dialog, click NO that you don't want to export the macro code before removing it.

6) NewMacros and the Module1 folder should both disappear.

7) Save your drawing.

When you close and reopen your drawing, the macro warning will be gone.


Author Comment

ID: 20195126
excellent! I actually had to delete the forms and other various things as well in the macro area. But it worked! Thanks!

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ability to add structure to Visio diagrams using containers, lists and callouts is one of my favorite features in Visio 2010. In this article we’ll examine containers. We’ll explore lists (http://www.experts-exchange.com/Microsoft/Applications/M…
The ability to add structure to Visio diagrams using containers, lists and callouts is one of my favorite features in Visio 2010. In this article we’ll examine lists. We’ll explore containers and callouts in separate articles. Prior to reading th…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month13 days, 23 hours left to enroll

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question