The file itself (or its template) MUST have a reference to Microsoft Scripting Runtime. You add it using (in the VBE) Tools > References.
Could I assign Permissions in a way that would address my concerns?
Yes, if
you have admin rights and access to Permissions.
I would suggest you talk this over with whoever handles your network. CMP is quite correct in that Macro Security may affect how things work. Also, let's face it, any Word VBA solution is not (and likely never will be) a fully secure anything.
If you have serious concerns about access from outside, then that should really be handled as a network security issue, not a file access issue. My document open code will work for Joe Blo trying to open the file, but a seriously knowledgeable nasty person could blow by it in a flash.
Permission/policy level security is not faultless either, but it sure is a heck of a lot more secure than a VBA solution.
The question is, what is your threat level? What are the consequences? How important IS this?
At the Permissions level, the admin would simply explicitly list members of the local network as having access to that file/folder. Everyone else, no access. Done. Essentially it is really a kind of reverse access. NO ONE has access, with these Exceptions (the members of the local network).
faq219-2884
Gerry
My paintings and sculpture