locate hidden automation/macro

J

John B

I have a drawing that "supposed" to have no macros.

Recently when I opened up the drawing, I get the "enable macro?" dialog box.
The interesting thing is that the drawing does not contain any macro
(Alt-F11 showed no modules) or automation.

Is there a way to locate the hidden automation/macro that is triggering the
macro dialog box?

Cheers,

JB
 
D

David Parker [Visio MVP]

It sounds as if the document has an empty vbproject section. This is caused
bysaving the document when the VBA editor is open.
One solution is to SaveAsXML, open in Notepad, or similar. Scroll down to
VBProject section near the end of the file, and delete it.
Then re-open the XML and SaveAs vsd.
 
Top