Information générale
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Marcia,
Thanks very much for your reply. The code you sent retrieves the entries in my "Contacts" list. And guess what? Your Compuserve email is one of the entries!
What I cannot figure out, however, is how to do the same for the other address list in Outlook. We have a seperate contact list called 'LMC Address Book' which has an entry for each office employee that has email. This is the oNameSpace.AddressList(2) that I referred to in my initial post.
? oNameSpace.AddressLists.Session.AddressLists.Count yields a 2
? oNameSpace.AddressLists(2).Name yields 'LMC Address Book'
? oNameSpace.AddressLists(2).AddressEntries.Count yields 82 which is the correct number of entries in the LMC Address Book
? oNameSpace.AddressLists(2).AddressEntries[1].Name yields the full name of the first person in the LMC Address Book
These same commnands with a 1 in the parenthesis gives the same information for the 'Contacts' list which is what your code gives.
What changes do I need to make to the code you sent in order to get the entries in the LMC Address Book list? I noticed that you used the GetDefaultFolder method. Would I need to use the GetFolderFromID method instead? And if so, how do I determine what parameter(s) to use?
Thanks very much for any additional help you can provide.
Stan
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement