WD: How to Modify the Layout of an Address Book Entry

Last reviewed: February 11, 1998
Article ID: Q134901
The information in this article applies to:
  • Microsoft Word for Windows 95, versions 7.0, 7.0a
  • Microsoft Word 97 for Windows

SUMMARY

This article describes how to modify the layout of an address that you insert when you use the Personal Address Book, 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 the ENTER key on your keyboard.

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

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 the ENTER key on your keyboard.

  2. Select this text.

  3. Word 97:

          a. On the Insert menu, point to AutoText. Click New.
    

          b. For the name, type "AddressLayout" (without the quotation marks).
    

             NOTE: You must use the name "AddressLayout" or the layout
             will not work.
    
          c. Click OK.
    
       Word 7.x
    
          a. On the Edit menu, click AutoText.
    
          b. For the name, type "AddressLayout" (without the quotation marks).
    
             NOTE: You must use the name "AddressLayout" or the layout
             will not work.
    
          c. Click Add.
    
    

To Insert an Address Book Entry in Your Document

  1. Click the Insert Address button on the Standard toolbar.

    NOTE: In Word 97, the insert address button no longer appears by default on the standard toolbar. It is found, however, on the Envelopes, Labels, and Mail Merge dialog boxes. It is also included in several wizards such as The Letter Wizard. To add the button to a toolbar in Microsoft Word 97, see the section entitled, "To add the Insert Adddress Button to the Toolbar" later in this article.

  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 above 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:

   ARTICLE-ID: Q141874
   TITLE     : Some Contact List Fields Not Available to Word

For additional information on AddressLayout, please refer to the Microsoft Office 97 Resource Kit, ISBN: 1-57231-329-3, available from Microsoft Press.

The Microsoft Office 97 Resource Kit is also available on the Internet at the following address:

   http://www.microsoft.com/office/ork/default.htm

To Add the Insert Adddress Button to the Toolbar

In Word 97, if you want to add the Insert Address button to a toolbar, follow these steps:

  1. On the View menu, point to Toolbars, and then click Customize.

  2. Click the Commands tab. Under Categories, select Insert.

  3. The available built-in buttons for the selected category will be displayed to the right of the list, under Commands.

  4. Scroll through the list of categories and find Address Book.

  5. Click the Address Book button and drag it to the location you want on a toolbar.

NOTE: To see a short description of any built-in button's function while in the Customize dialog box, click the button, and then click Description.


Additional query words: 7.0 addresslayout address layout
AutoText pab schedule all cap 8.0 8.00
Keywords : word7 word8 word95 word97 kbfaq
Version : WINDOWS:7.0,7.0a,97
Platform : WINDOWS
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 11, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.