WD2000: How to Modify the Layout of an Address Book Entry
ID: Q212345
|
The information in this article applies to:
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 Microsoft 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 Personal Address Book (PAB), Schedule+, or Microsoft Outlook Contact list.
MORE INFORMATIONTo Create a New Format
- 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.
- Select this text.
- On the Insert menu, point to AutoText and then click New.
- For the name, type AddressLayout.
NOTE: You must use the name "AddressLayout", or the layout will not work.
- Click OK.
To Insert an Address Book Entry in Your Document
- Add the Address Book button to a menu or toolbar.
NOTE: The Address Book button does not appear by default on the Standard toolbar. It does appear in the Envelopes, Labels, and Mail Merge dialog boxes. It is also included in several wizards such as the Letter Wizard.
To add the Address Book button to a toolbar, follow these steps:
- On the View menu, point to Toolbars, and then click Customize.
- Click the Commands tab. Under Categories, click Insert.
The available built-in buttons for the selected category are displayed to the right of the list, under Commands.
- Scroll through the list of categories and find Address Book.
- Drag the Address Book button to the location you want on a menu or 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.
- Click the Address Book button to select a name from your list.
- 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, click the Insert Address button, select the name, and then click Properties in the Select Name dialog box.)
The error message also occurs 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
The following table lists the supported properties, including which address books they can be used with. A maximum of 12 properties can be used at one time.
Which address
book these
properties are
Property Explanation used with
--------------------------------------------------------------------------
PR_ADDRTYPE Addressee's electronic mail PAB, Schedule+,
address type Outlook
PR_BEEPER_TELEPHONE_NUMBER Addressee's beeper PAB, Schedule+,
telephone number Outlook
PR_BUSINESS_FAX_NUMBER Addressee's business fax Schedule+,
number Outlook
PR_CAR_TELEPHONE_NUMBER Addressee's car telephone Outlook
number
PR_CELLULAR_TELEPHONE_NUMBER Addressee's cellular PAB, Schedule+,
telephone number Outlook
PR_COMMENT Text included on the Notes PAB, Schedule+
tab for the address entry
PR_COMPANY_NAME Name of the addressee's PAB, Schedule+,
company Outlook
PR_COUNTRY Addressee's country PAB, Schedule+,
Outlook
PR_DEPARTMENT_NAME Name of addressee's PAB, Schedule+,
department within the Outlook
company
PR_DISPLAY_NAME The name displayed in the PAB, Schedule+,
Address Book dialog box Outlook
PR_EMAIL_ADDRESS Addressee's electronic mail PAB, Schedule+,
address Outlook
PR_GIVEN_NAME Addressee's given name, or PAB, Schedule+,
first name Outlook
PR_HOME_FAX_NUMBER Addressee's home fax number Outlook
PR_HOME_TELEPHONE_NUMBER Addressee's home telephone PAB, Schedule+,
number Outlook
PR_INITIALS Addressee's initials Not Available
PR_LOCALITY Addressee's city or PAB, Schedule+,
locality Outlook
PR_LOCATION Addressee's location. Schedule+
Example: "16/3000", room
3000 in building 16
PR_OFFICE_LOCATION Addressee's office location PAB, Schedule+,
Outlook
PR_OFFICE_TELEPHONE_NUMBER Addressee's office PAB, Schedule+,
telephone number Outlook
PR_OFFICE2_TELEPHONE_NUMBER Addressee's second office PAB, Schedule+,
telephone number Outlook
PR_OTHER_TELEPHONE_NUMBER Addressee's alternate Outlook
telephone number (other
than home or office)
PR_POSTAL_CODE Addressee's postal code PAB, Schedule+,
Outlook
PR_PRIMARY_FAX_NUMBER Addressee's primary fax PAB, Outlook
number
PR_PRIMARY_TELEPHONE_NUMBER Addressee's primary PAB, Schedule+
telephone number
PR_RADIO_TELEPHONE_NUMBER Addressee's radio telephone Outlook
number
PR_STATE_OR_PROVINCE Addressee's state or PAB, Schedule+,
province Outlook
PR_STREET_ADDRESS Addressee's street address PAB, Schedule+,
Outlook
PR_SURNAME Addressee's surname, or PAB, Schedule+,
last name Outlook
PR_TITLE Addressee's job title PAB, Schedule+,
Outlook
REFERENCESFor more information about the Address Book, click Microsoft Word Help on the
Help menu, type Address Book in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
For more information about AutoText, click Microsoft Word Help on the
Help menu, type AutoText in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned.
For additional information about how to modify an address layout, click the article number below
to view the article in the Microsoft Knowledge Base:
Q234554 WD2000: Supplemental Macros (Macros9.dot) Available for Download
Additional query words:
addresslayout address layout AutoText pab schedule all cap
Keywords : kbdta kbautotext kblayout wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbinfo
|