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 / September 2006

Tip: Looking for answers? Try searching our database.

Outlook2003 Stript  How to extract a list of contact by the Company Name

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
news.microsoft.com - 22 Sep 2006 10:48 GMT
Hi all,

On a personal Form I want to fill a combo box with all the contact  (from
public contact folder)  that have a specific Company Name

I don't where to start

can someone help

tks
Dmitry Streblechenko - 25 Sep 2006 21:38 GMT
set Contacts = Application.Session.GetDefaultFolder(olFolderContacts)
set Items = Contacts.Items
set Item = Items.Find("[CompanyName] = 'TheName'")
do while not (Item Is Nothing)
 Debug.Print Item.FileAs
 set Item = Items.FindNext
loop

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

> Hi all,
>
[quoted text clipped - 6 lines]
>
> tks
 
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.