View Single Post
  #1  
Old October 13th 09, 11:08 AM posted to microsoft.public.outlook.program_vba
paresh
external usenet poster
 
Posts: 66
Default Question on getExchangeUser method in Outlook Add-in

Hi,

I have been using below code to get the users detailed contact information.

Dim usersList As Outlook.AddressEntries
Dim oEntry As Outlook.AddressEntry
Dim oContact As Object

Set usersList = Outlook.Application.Session.AddressLists.Item("All
Users").AddressEntries
Set oEntry = usersList.Item("user name")
MsgBox oEntry.GetExchangeUser().BusinessTelephoneNumber & " " &
oEntry.GetExchangeUser().MobileTelephoneNumber

I could see BusinessTelephoneNumber and MobileTelephoneNumber properties in
GetExchangeUser() method but couldn't find HomeMobileNumber. I have verified
the same from Object browser and couldn;t see the HomeTelephoneNumberProperty
there.

Is this expected? How could I get the HomeTelephoneNumber then?

Though I could see the HomeTelephoneNumber property is a part of
ContactItem, I cannot use it as all users won't be part of contacts folder.

Thanks.
Ads