Locking a page

E

Edward

Is there anyway of locking a page in word once you have set it up. I do lots
of mail merging in word. I get very nervous in that if I accidentally hit a
key during my many merges I may delete a key stroke without noticing. Can I
lock my page so no changes can be made to the document?

Thanks.
 
C

Charles Kenyon

You can protect the document for forms (under the tools menu). This can not
be done prior to a merge, though. That is, a document that is protected for
forms can't be used as a primary merge document. If you merge to a new
document, though, you can protect that document after the merge is done.
Otherwise, if you are viewing the merge result for one record on the screen,
the following code in a macro will protect a merge document:

ActiveDocument.Protect Type:=wdAllowOnlyFormFields

However, you can't change to a different record while the document is
protected, merge features are disabled by the protection, I think.
--

Charles Kenyon

See the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
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.
 
Top