ExctractAddress

A

Adam

Hi
I need the code in VBA who can extract one or some personal address
from address book of the MS.Outlook
Could you help mi
Thank you
 
D

Dean

From Outlook VBA Help:
Set myOlApp = CreateObject("Outlook.Application")
Set myNamespace = myOlApp.GetNamespace("MAPI")
Set myAddrList = myNamespace.AddressLists("Personal
Address Book")
Set myAddrEntries = myAddrList.AddressEntries
Set myEntry = myAddrEntries.Add("Microsoft Mail
Address")
myEntry.Name = "John Q. Public"
On Error GoTo DialogBox
myEntry.Address = "(e-mail address removed)"
myEntry.Update
DialogBox:
myEntry.Details
 

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