A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Access Contact Item properties in loop



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 30th 07, 10:35 PM posted to microsoft.public.outlook.program_vba
Matt Williamson
external usenet poster
 
Posts: 21
Default 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


  #2  
Old April 30th 07, 11:16 PM posted to microsoft.public.outlook.program_vba
Matt Williamson
external usenet poster
 
Posts: 21
Default 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.



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Item properties vs. Regular item properties Rayo K Outlook and VBA 11 December 22nd 06 06:43 AM
how to Access the Child Node in XML Which is given in loop through VB safs Outlook - Using Contacts 1 October 14th 06 09:27 PM
Contact/Area Code Phone Properties Corren Outlook - Using Contacts 15 July 30th 06 07:22 AM
blank contact lines,cannot delete,properties:invalid ENTRYID Troy Coleman Outlook - Using Contacts 2 June 28th 06 04:50 AM
Would like to access sharing properties for calendars [email protected] Outlook - Calandaring 0 February 28th 06 12:47 AM


All times are GMT +1. The time now is 06:20 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-2025 Outlook Banter.
The comments are property of their posters.