Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Jul 2003
    Location
    Park City, Utah
    Posts
    189
    Thanks
    1
    Thanked 0 Times in 0 Posts

    OAB (Outlook 2000)

    In OL 2000 is there a way to have the address book display names as Last, First when accessed from Word? In XP, I got around this by changing the display options and then also changing the Display Name to Last, First. I don't see any Display Name field (E-mail Display Name) in 2000.

    In 2000, I changed the View option in OAB to Last, First and while in outlook they display that way, but when the address book is accessed from Word, they display, I believe, the full name field. The user then has to use the "Find" option to look for a last name.

    Is there any definitive information on OAB somewhere? This has been the most frustrating aspect of project development.

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: OAB (Outlook 2000)

    I had trouble with the same thing. See if this code snippet is of any use:

    Dim objApp As Outlook.Application
    Dim nsNS As Outlook.NameSpace
    Dim objAddrLists As AddressLists
    Dim objAddrListEnt As AddressEntries

    Set objApp = CreateObject("Outlook.Application")
    Set nsNS = objApp.GetNamespace("MAPI")
    Set objAddrLists = nsNS.AddressLists
    On Error Resume Next
    Set objAddrListEnt = objAddrLists("Contacts").AddressEntries
    If Not objAddrListEnt Is Nothing Then
    objAddrListEnt.Sort "[FirstLast]", olAscending
    ' objAddrListEnt.Sort "[LastFirstAndSufffix]", olAscending
    ' objAddrListEnt.Sort "[LastFirstSpaceOnly]", olAscending
    -John ... I float in liquid gardens
    UTC -7ąDS

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: OAB (Outlook 2000)

    <P ID="edit" class=small>(Edited by JohnBF on 16-Sep-03 14:47. Added Slipstick reference.)</P>Jeanieb, you may be able to do this better with CDO, which I have no experience with. In Sue Mosher's book Microsoft Outlook Programming, Jumpstart ... see Section 14.6.3.

    Re your question on AB resources, Sue is the force behind the Slipstick website, in case you are not familiar with it, and it includes some stuff that may help you, but I don't see a Sort Method.
    -John ... I float in liquid gardens
    UTC -7ąDS

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •