Locking a document

M

Mark

I have a template which includes formfields. When a document is created from
that template and completed. Is it possible to lock the enture document and
it's contents to prevent the content being altered without a password?
 
D

Doug Robbins - Word MVP

Yes

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
C

Charles Kenyon

1) Go to office.
2) Sit down in chair in front of computer.
3) Turn on computer and log in if needed.
4) Start Word program.
5) Open your form template so it is on your screen.
6) Use the menus: Tools > Protect Document > For Forms
7) Set a password
8) Close and save the template.

What you are talking about is what Word calls an "online form." Check this
in help. For more about online forms, follow the links at
http://addbalance.com/word/wordwebresources.htm#Forms or
http://word.mvps.org/FAQs/Customization/FillinTheBlanks.htm especially Dian
Chapman's series of articles. You may also want to look at
http://www.word.mvps.org/FAQs/TblsFldsFms/LinesInForms.htm.

Hope this helps,
--

Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide




--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
C

Cindy Meister

(Note: Word 97 and later)

You're asking this in a developer newsgroup, so I'm assuming you're looking
for a macro solution. You basically have two choices.

- Unprotect the document, turn all fields into static text
(ActiveDocument.Fields.Unlink) then reprotect. This would require keeping the
password in the macro code.

- Set each form field to NOT be enabled for user input. This can be done
without changing document protection, but would require cycling through all
the form fields. Roughly
For each ffld in ActiveDocument.Formfields
ffld.Enabled = false
Next

IMPORTANT REMARK: Form field protection is only marginally "safe". Anyone
can get around it by using Insert/File to bring the form into a new document,
where the protection is not in-force. There is NO stricter protection option
available in Word 97 or 2000.
 
M

Mark

Charles,
Thanks for your response, as you can see another MVP has supplied me with
the appropriate help.
 

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