G
Gordon
Hi;
Just where do you place you test statement i.e. myObj.Class =
olDistributionClass,
when coding to loop through the contacts.item collection ?
Like this:
For Each contact In objAllContacts
' test for type of object
If contact.Class = olDistributionList Then
Debug.Print "I've got one"
End If
Debug.Print contact.FileAs & " " & contact.Email1Address
Next
My loop keeps crashing when I hit the DL.
This makes since but how do avoid this ? Test for this type of contact.
But where ?
Is it just me or is the Outlook Object Model hard to learn ?
-
Thanks for your responses,
Gordon
Just where do you place you test statement i.e. myObj.Class =
olDistributionClass,
when coding to loop through the contacts.item collection ?
Like this:
For Each contact In objAllContacts
' test for type of object
If contact.Class = olDistributionList Then
Debug.Print "I've got one"
End If
Debug.Print contact.FileAs & " " & contact.Email1Address
Next
My loop keeps crashing when I hit the DL.
This makes since but how do avoid this ? Test for this type of contact.
But where ?
Is it just me or is the Outlook Object Model hard to learn ?
-
Thanks for your responses,
Gordon