Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Access Contact Item properties in loop (http://www.outlookbanter.com/outlook-vba/47244-access-contact-item-properties-loop.html)

Matt Williamson April 30th 07 10:35 PM

Access Contact Item properties in loop
 
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 April 30th 07 11:16 PM

Access Contact Item properties in loop
 
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


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.





All times are GMT +1. The time now is 06:19 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com