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