deleting macro in Stencil

J

Joe

I am using Visio 2002 and have a stencil that contains VBA code. I need to delete this code to prevent the enable macro dialog from appearing when a user opens this stemcil.

I have tried going into the VBE and deleting the modules, class modules as well as the code from within the ThisDocument class. I then save the stencil via the VBE. The VBE now shows no VBA code, but whenever I open the stencil, it still asks if I want to enable the macros.

Does anyone know how to deal with this?

TIA,
 
D

David Parker

Save as XML and delete the VBProject section in a text editor.
Then open this file in visio, and save as vss

Joe said:
I am using Visio 2002 and have a stencil that contains VBA code. I need
to delete this code to prevent the enable macro dialog from appearing when a
user opens this stemcil.
I have tried going into the VBE and deleting the modules, class modules as
well as the code from within the ThisDocument class. I then save the
stencil via the VBE. The VBE now shows no VBA code, but whenever I open the
stencil, it still asks if I want to enable the macros.
 
J

Joe

Thank you.
--
Joe

VBA Automation/VB/C++/Web and DB development


David Parker said:
Save as XML and delete the VBProject section in a text editor.
Then open this file in visio, and save as vss

Joe said:
I am using Visio 2002 and have a stencil that contains VBA code. I need
to delete this code to prevent the enable macro dialog from appearing when a
user opens this stemcil.
I have tried going into the VBE and deleting the modules, class modules as
well as the code from within the ThisDocument class. I then save the
stencil via the VBE. The VBE now shows no VBA code, but whenever I open the
stencil, it still asks if I want to enable the macros.
 
M

M@

Hey Joe,

Macro's in the shapes shapesheet cells will cause the dialogue to be
displayed.
You may want to delete any references to macro's in your stencil's shapes
cells.

M@




Joe said:
I am using Visio 2002 and have a stencil that contains VBA code. I need
to delete this code to prevent the enable macro dialog from appearing when a
user opens this stemcil.
I have tried going into the VBE and deleting the modules, class modules as
well as the code from within the ThisDocument class. I then save the
stencil via the VBE. The VBE now shows no VBA code, but whenever I open the
stencil, it still asks if I want to enable the macros.
 
S

steveg

Joe,
Did this end up working for you?
My stencils did not have a VBProject section. I am using Visio 2003.
I opened the xml version of my stencil in notepad but a find was not
successful.

Joe said:
 

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