Programmatically bring up Address List Dialog

Posted on 2006-05-19
Last Modified: 2009-07-29
I would like to bring up the address list dialog programmatically.  When a user selects someone from the address list,  I would like the information returned to a variable or array.

Can this be done?

In Excel, I can bring up Excel dialogs using:  Application.Dialog(xlDialogZoom), etc.

There doesn't seem to be anything like this in Outlook.

Question by:dastrw
    1 Comment
    LVL 74

    Accepted Solution


    Assumming that you could call up the dialog box... you would probably need to access the API to pull the value from the dialog box.

    I do not believe that the values contained it the dialog box are "Exposed" to VBA.

    For example, the code:
    Will, in fact, display the dialog box. But capturing current zoom percent "From the dialog box" is not possible.

    You could however "get" the zoom ration through VBA:
        MsgBox ActiveWindow.Zoom
    ...But not from the dialog box.

    You could also set the Zoom ratio in code:
    ActiveWindow.Zoom = 200

    Again, to accesss the value from the dialog box you would probably have to access the API. You whould have to Access the "AfterUpdate?" event of the dialog box, and caputre the data there.

    Or, like in the Excel example, you could get the value through code after the value is being used (When it is present in the message "To..." Box).
    Something like this for Excel:

    Your Outlook code would look something like this:

    My above example is "Air code" so it will not work, but you get the idea.

    Check these to books:

    Good luck!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Learn more about how the humble email signature can be used as more than just an electronic business card. When used correctly, a signature can easily be tailored for different purposes by different departments within an organization.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now