pavane Level: VB Lord Registered: 26-04-2004 Posts: 179
VBA in Visio
Hi,
I have written some VBA macros for Visio. Currently, I have to load the modules into each diagram, and they are visible to all.
Can anyone tell me how to protect these and maybe load then so that they can be picked up automatically when Visio creates a diagram?
Do they have to be converted to DLL, ActiveX or plug-in of some kind?
Thanx
30-09-2005 at 02:47 PM
|
stickleprojects Level: Moderator Registered: 09-09-2002 Posts: 891
Re: VBA in Visio
Hi,
Visio 2003, to lock code from users viewing it:
Tools->[filename] Properties->Protection
Check the box that says "Lock File for Viewing" and add a password.
Kieron
____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)
27-10-2005 at 12:12 PM
|
pavane Level: VB Lord Registered: 26-04-2004 Posts: 179
Re: VBA in Visio
Thanks for that.
I am currently stuck with Visio 2000, which doesn't seem to provide that facility. I will make sure that I specify 2003 as a minimum requirement if and when I come to distribute my work commercially. I can then distribute a template which already contains the protected code.