Microsoft KB Archive/106658

From BetaArchive Wiki

Article ID: 106658

Article Last Modified on 8/16/2005



APPLIES TO

  • Microsoft Word 6.0 Standard Edition
  • Microsoft Word 6.0a
  • Microsoft Word 6.0c
  • Microsoft Word 95 Standard Edition
  • Microsoft Word 95a



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:

  1. Select Protect Document on the Tools menu.
  2. 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:

  1. Select Macro from the Tools menu.
  2. Type in a macro name (i.e.: ProtectDocument), and then select the Create button.
  3. The following will appear in the macro window:

              Sub Main
    
              End Sub
                            
  4. 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
                            
  5. Select Close from the File menu. When prompted "Do you want to keep the changes to the macro Global: ProtectDocument?", select Yes.
  6. 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.




Additional query words: 6.0 winword word6 7.0 word95 word7

Keywords: kbfield KB106658