Tony is correct. However, if the user has access to the template from which
the document is created - for example, it's in the Workgroup Templates
folder or rolled out to the users' machines via a login script or some such
mechanism - the user will still have access to any code in the template.
This process allows code to be written so that the user can perform
document-specific operations post-document creation; e.g. rerun the
template, work with some specific feature in the document, etc.
You can set up your code so that the last operation after the document is
built is to disconnect it from the original template by using something like
ActiveDocument.AttachedTemplate = Normal.dot. There are some risks
associated with this process, but nothing that can't be worked around
easily.
Of course, if the users _don't_ have access to the template - for example,
if you email it to someone outside of the organisation - then it becomes a
non-issue.
--
Cheers!
Gordon Bentley-Mix
Word MVP
Please post all follow-ups to the newsgroup.
Read the original version of this post in the Office Discussion Groups - no
membership required!