Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / October 2007

Tip: Looking for answers? Try searching our database.

Extracting Email from contact Item

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bbnimda - 31 Oct 2007 14:10 GMT
Hi all,

I use a personal form  in this form a creat a list of all contact in
specific folder

Then I select a name in the combo

How can'I obtain the mail of this contact ???  I tryed diferent way but no
one works

here a part of my code

' //My contact folder is Target

Set RepFdv = Application.GetNamespace("MAPI").Folders("dossiers
publics").Folders("tous les dossiers publics").Folders("carnets
adresses").Folders("Contact FDV").Folders(target)
totalFdv=RepFdv.items.count

MonIndex1=0

do while monindex < totalFdv

MonIndex=MonIndex+1

Set myItem1 = RepFdv.Items(MonIndex)

NomCherche = myItem1.fullname

if NomCherche=NomUser then

'       here is what i tryed

set Usermail = myItem1.UserProperties("E-mail Selected")  << ==

Set Usermail = myItem1.UserProperties(Email1Adress)

end if

loop

Ths
Signature

http://bensoft.miniville.fr/

bbnimda - 31 Oct 2007 14:21 GMT
Hi again

Sorry I found my sitackes

Email1Adress =>  Email1Address

It work's now

Thks

> Hi all,
>
[quoted text clipped - 38 lines]
>
> Ths
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.