Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Updating Exchange Addres List


Message #1 by "Jason Farmer" <jason@s...> on Wed, 23 Jan 2002 09:54:06
Dim objMapiSession As Session
Dim objAddrList As Object
Dim objAddressEntry As Mapi.AddressEntry

    Set objMapiSession = CreateObject("MAPI.Session")
    
    objMapiSession.Logon profilename:="user", profilePassword:="xxxx"
    
    Set objAddrList = objMapiSession.AddressLists("Global Address 
List").AddressEntries
   
    Set objFilter = objAddrList.Filter
    objFilter.Fields.Add CdoPR_ACCOUNT, "user"
    Set objAddressEntry = objAddrList(1)

    objAddressEntry.Fields(CdoPR_BUSINESS_TELEPHONE_NUMBER) = "311"
    objAddressEntry.Update

  Return to Index