Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[outlook automation] How to retrieve current Contact???

Status
Not open for further replies.

Akawan

Programmer
Apr 12, 2011
1
BE
Hello World,

Here is my current code :

oOutlook = CREATEOBJECT('outlook.application')
oNameSpace = oOutlook.getnamespace('MAPI')
oDefaultFolder = oNameSpace.GetDefaultFolder(olFolderContacts)
oItem = oDefaultFolder.items

I want that oItem retrieve the contact on which I click.
Is it possible?

Thank you,

A.
 
A,

try the outlook application's activeexplorer object...

loX = loOutlook.ActiveExplorer
loContact = loX.SELECTION.ITEM(1)



hth

nigel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top