Blank Line Suppression When Using FILLIN field (106652)
The information in this article applies to:
- Microsoft Word for Windows 2.0
- Microsoft Word for Windows 2.0a
- Microsoft Word for Windows 2.0b
- Microsoft Word for Windows 2.0c
- 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
- Microsoft Word 97 for Windows
- Microsoft Word 98 Macintosh Edition
- Microsoft Word for the Macintosh 6.0
- Microsoft Word for the Macintosh 6.0.1
- Microsoft Word for the Macintosh 6.0.1a
This article was previously published under Q106652 SYMPTOMS
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).
WORKAROUND
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:
- 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.
- 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.
REFERENCES
"Microsoft Word for Windows User's Guide," version 2.0, pages 474 and
672
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | kbfield kbhowto kbmerge KB106652 |
---|
|