General information
Category:
COM/DCOM and OLE Automation
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only