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 / April 2007

Tip: Looking for answers? Try searching our database.

Access Contact Item properties in loop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt Williamson - 30 Apr 2007 21:35 GMT
I need to extract all of the regular contact fields from Outlook and I'm
trying to figure out how to just grab all of the items of a ContactItem less
the Objects in a loop. Is this possible? I'm coding in VB6

Instead of

with oContactItem
  .Fullname
  .MailingAddressCity
  .MailingAddressStreet
   'etc for each property
end with

I want to just do something like:

for each item in oContactItems
   if item <> "Object"
       'add item value to a collection
           colContactFields.add item.value, item.name
   end if
next

TIA

Matt
Matt Williamson - 30 Apr 2007 22:16 GMT
>I need to extract all of the regular contact fields from Outlook and I'm
>trying to figure out how to just grab all of the items of a ContactItem
[quoted text clipped - 17 lines]
>    end if
> next

It seems like I figure out the answer right after I post. 2nd Time today.
Sorry for the clutter. The ItemProperties collection gets me where I want to
go.
 
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.