getting info from

L

Long Nguyen

In my custom form's vbscript, given the Full Name of an Personal Address
Book's entry, how can I extract info from that entry in the PAB?

I tried the following without success.

Set olns = Item.Application.GetNameSpace("MAPI")
Set myAddrList = olns.AddressLists("Personal Address Book")
' Set myAddrEntries = myAddrList.AddressEntries
set myEntry = myAddrList.AddressEntries("John Smith")
msgbox myEntry.Address

I got the message "An object could not be found." Note that an entry with
full name John Smith exists in the PAB.

The Hep Text in Outlook show how to add an entry to PAB. It does not show
how to extract info for an existing entry.

Thanks
Long
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top