Insertion Point Stays in Form Field with Protection Turned Off (106658)
The information in this article applies to:
- Microsoft Word for Windows 6.0
- Microsoft Word for Windows 6.0a
- Microsoft Word for Windows 6.0c
- Microsoft Word for Windows 95
- Microsoft Word for Windows 95 7.0a
This article was previously published under Q106658 SYMPTOMS When using a form field in a protected document, and turn
the document protection off, the insertion point remains in the field. This may
pose a problem if you continue typing and then turn the forms protection back
on. MORE INFORMATION Microsoft Word allows for a document to be protected for
forms. This is accomplished by the insertion of form fields into a document and
setting the Forms protection by selecting Protect Document on the Tools menu.
When the insertion point is in a form field of a document, and the
form protection is removed, the insertion point remains within the form field.
Any text typed will become part of the form field if the insertion point is not
moved before typing.
RESOLUTION Before you make any changes to the unprotected document,
move the insertion point out of the form field. The form field will have a gray
shading by default where the form field exists (the color of the shading may be
different based on the Windows colors you have selected). To Protect a Document as a Form:- Select Protect Document on the
Tools menu.
- Select Forms under Protect
Document For:, and then select OK.
Note Any text that was previously typed into a form field will be
cleared, by default. If the information in the form fields has to be retained,
the forms protection needs to be set using the following macro. Warning Any use by you of the or macro code provided in this article is
at your own risk. Microsoft provides this macro code "as is" without warranty
of any kind, either express or implied, including but not limited to the
implied warranties of merchantability and/or fitness for a particular purpose.
To create the Forms Protection Macro, use the following steps:
- Select Macro from the
Tools menu.
- Type in a macro name (i.e.: ProtectDocument), and then
select the Create button.
- The following will appear in the macro window:
Sub Main
End Sub
- The insertion point will be on the blank line between the
Sub Main and the End Sub. Type in the following on the blank line:
ToolsProtectDocument .Type = 2, .NoReset = 1
- Select Close from the
File menu. When prompted "Do you want to keep the changes to
the macro Global: ProtectDocument?", select Yes.
- To run the ProtectDocument macro, select
Macro from the Tools menu. Select the
ProtectDocument macro, and select Run. The
macro will protect the document without clearing the text from the form
fields.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbfield KB106658 |
---|
|