WD95: How to Modify the Layout of an Address Book Entry (186955)



The information in this article applies to:

  • Microsoft Word for Windows 95
  • Microsoft Word for Windows 95 7.0a

This article was previously published under Q186955

SUMMARY

This article describes how to modify the layout of an address that you insert when you use the Personal Address Book (PAB), Schedule+, or Outlook Contact List.

The address layout is determined by the AutoText entry "AddressLayout" This entry may contain any predefined address property names between the angle brackets (<>). Note that all of the following property names must be typed in uppercase letters; for example:

{<PR_GIVEN_NAME>} {<PR_SURNAME><ENTER>
}{<PR_COMPANY_NAME><ENTER>
}{<PR_STREET_ADDRESS><ENTER>
}{<PR_LOCALITY>}, {<PR_STATE_OR_PROVINCE>
}{<PR_POSTAL_CODE><ENTER>}

where <ENTER> indicates that you should press ENTER on your keyboard. Also, the brace characters ( { and } ) are typed from the keyboard and are not to be confused with field braces (CTRL+F9). When you use the braces with the address layout fields, if a field is blank when you import the address, Word automatically suppresses the blank line.

NOTE: The "AddressLayout" format is limited to a maximum of 12 fields from a PAB, Microsoft Schedule Plus for Macintosh, or Microsoft Outlook for Macintosh.

MORE INFORMATION

To Create a New Format

  1. In a new Word document, type the predefined address property names (in uppercase letters) in the format you want to set up; for example:

    {<PR_GIVEN_NAME>} {<PR_SURNAME><ENTER>
    }{<PR_COMPANY_NAME><ENTER>
    }{<PR_STREET_ADDRESS><ENTER>
    }{<PR_LOCALITY>}, {<PR_STATE_OR_PROVINCE>
    }{<PR_POSTAL_CODE><ENTER>}

    where <ENTER> indicates that you should press ENTER on your keyboard. Also, the brace characters ( { and } ) are typed from the keyboard and are not to be confused with field braces (CTRL+F9). When you use the braces with the address layout fields, if a field is blank when you import the address, Word automatically suppresses the blank line.
  2. Select this text.
  3. On the Edit menu, click AutoText.
  4. For the name, type "AddressLayout" (without the quotation marks). NOTE: You must use the name "AddressLayout" or the layout will not work.
  5. Click Add.

To Insert an Address Book Entry in Your Document

  1. Click the Insert Address button on the Standard toolbar.
  2. Select a name from the list.
  3. Click OK.
The address book entry should be inserted into your document in the format you defined for your AutoText entry. However, if you receive the following error message instead, modify the properties of the name you chose in step 2:
There are no address fields in this address book. Pick the desired address book and try again.


NOTE: The properties are set incorrectly if both the first and last names appear in the First box on the Business tab. (To access this option, first click the Insert Address button, select the name, and then click Properties on the Select Name dialog box.)

The error message will also occur if you enter the property names for the AutoText entry in lowercase letters. To resolve this problem, change all the property names to uppercase letters.

What Properties Are Supported?

For additional information on which properties are supported, including which address books use which properties, please see the following article in the Microsoft Knowledge Base:

141874 WD97: Some Contact List Fields Not Available to Word


Modification Type:MinorLast Reviewed:8/17/2005
Keywords:kbautotext kbhowto kblayout KB186955