Microsoft KB Archive/106652

From BetaArchive Wiki

Article ID: 106652

Article Last Modified on 1/18/2007


  • Microsoft Word 2.0 Standard Edition
  • Microsoft Word 2.0a
  • Microsoft Office Word 2003
  • Microsoft Word 2.0c
  • Microsoft Word 6.0 Standard Edition
  • Microsoft Word 6.0a
  • Microsoft Word 6.0c
  • Microsoft Word 95 Standard Edition
  • Microsoft Word 95a
  • Microsoft Word 97 Standard Edition
  • Microsoft Word 98 for Macintosh
  • Microsoft Word 6.0 for Macintosh
  • Microsoft Word 6.01 for Macintosh
  • Microsoft Word 6.01 for Macintosh

This article was previously published under Q106652


If you are using a FILLIN field in Microsoft Word, and do not enter any information into the FILLIN message box, the line in the document that holds the field code will still exist (and will be blank).


To have the blank line suppressed if no information is entered in the FILLIN field message box, use one of the two methods below.

Method 1: Use Bookmarks

TO use bookmarks to create the FILLIN field data, follow these steps:

  1. Using the following example as a model, insert the following lines somewhere in your document, before the location where the information generated by the FILLIN fields will go:

          {set name "{fillin "enter name"}"}
          {set company "{fillin "enter company"}"}
          {set address "{fillin "enter address"}"}

    These lines assign FILLIN values to bookmarks. These bookmarks will be referenced later in the document where the information will actually appear.

  2. Enter the following lines at the location in the document where you want the information to appear.

          {if name <> "" "{name}
          "}{if company <> "" "{company}
          "}{if address <> "" "{address}

Method 2: Use SET Statements

The results of this method are identical to the results of Method 1. The SET statements have been incorporated into the conditional statements.

   {set name {fillin "enter name"}}{if name <> "" "{name}
   "}{set company {fillin "enter company"}}{if company <> "" "{company}
   "}{set address {fillin "enter address"}}{if address <> "" "{address}

When you select the whole document (click Select All on the Edit menu) and press F9 to update the fields, you will be prompted for each piece of information. If you leave one or more of the pieces of information blank, the line containing its FILLIN field will be suppressed.


"Microsoft Word for Windows User's Guide," version 2.0, pages 474 and 672

Additional query words: macro

Keywords: kbhowto kbmerge kbfield KB106652