+ Reply to Thread
Results 1 to 11 of 11

How to get Global Address Exchange User information using Email Address

  1. #1
    Registered User
    Join Date
    10-05-2022
    Location
    Jacksonville, Fl
    MS-Off Ver
    Office 365
    Posts
    6

    How to get Global Address Exchange User information using Email Address

    First POST - I am trying to do a similar new module that takes an email address and returns the ExchangeUser. In this working example below(simplified for posting) I use the Emailname to get the email address, manager, job title, etc..
    For the new module I have to start with the email address and get the same information. I have only been using VBA for a few years writing reporting macros, and only started venturing into interfacing with outlook.
    Thank you
    Please Login or Register  to view this content.
    Last edited by davesexcel; 10-05-2022 at 08:54 AM.

  2. #2
    Forum Contributor
    Join Date
    02-25-2022
    Location
    Dallas, Texas
    MS-Off Ver
    Office 365
    Posts
    174

    Re: How to get Global Address Exchange User information using Email Address

    You probably need to loop through list to get specific user.

    Please Login or Register  to view this content.

  3. #3
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: How to get Global Address Exchange User information using Email Address

    You could add the recipient by email address to a mail, resolve the recipient, then use that to retrieve the exchange user perhaps:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  4. #4
    Registered User
    Join Date
    10-05-2022
    Location
    Jacksonville, Fl
    MS-Off Ver
    Office 365
    Posts
    6

    Re: How to get Global Address Exchange User information using Email Address

    Thanks, Looping is not an option. There are over 10K entries in the Global Address List. Currently I am able to pull the exact email address, job title, manager, etc, using the Name. I am trying to do the same with the EmailAddress. I appreciate any insite

  5. #5
    Registered User
    Join Date
    10-05-2022
    Location
    Jacksonville, Fl
    MS-Off Ver
    Office 365
    Posts
    6

    Re: How to get Global Address Exchange User information using Email Address

    Performance is an issue. Is there any direct way like in the example I provided that returns immediate the email data using the email name There are over 10K entries in the Global Address List. Currently I am able to pull the exact email address, job title, manager, etc, using the Name. I am trying to do the same with the EmailAddress. I appreciate any insite

  6. #6
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: How to get Global Address Exchange User information using Email Address

    Did you see my post? Is resolving a recipient not an option?

    WBD

  7. #7
    Registered User
    Join Date
    10-05-2022
    Location
    Jacksonville, Fl
    MS-Off Ver
    Office 365
    Posts
    6

    Re: How to get Global Address Exchange User information using Email Address

    Thanks, The issue is performance. Creating the mailitem and popping up to 10K email addresses in and out would run for hours. In the current application using the name runs fast. I am amazed that I can retrive the information using the name but not the email address. I appreciate your feedback and suggestion.

  8. #8
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: How to get Global Address Exchange User information using Email Address

    OK. Perhaps you need to describe your problem in more detail. You didn't mention that this was intended to go in a loop of 10K email addresses. There may be other solutions. Could you post a redacted workbook with, say, 10 spoof email addresses and show us what you're trying to achieve?

    WBD

  9. #9
    Registered User
    Join Date
    10-05-2022
    Location
    Jacksonville, Fl
    MS-Off Ver
    Office 365
    Posts
    6

    Re: How to get Global Address Exchange User information using Email Address

    Thanks and sorry for any confusion. I was hoping that there was a simple solution to get a similar result to this statement. "Set olAddressEntry = olGlobalAddressList.AddressEntries(EmailName)". using the email address and get the information on Name, Job Title, manager, etc...

    Set olApplication = CreateObject("Outlook.Application")
    Set olNamespace = olApplication.GetNamespace("MAPI")
    Set olGlobalAddressList = olNamespace.GetGlobalAddressList()
    Set olAddressEntry = olGlobalAddressList.AddressEntries(EmailName) ?

  10. #10
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: How to get Global Address Exchange User information using Email Address

    Without using a MailItem:

    Please Login or Register  to view this content.
    WBD

  11. #11
    Registered User
    Join Date
    10-05-2022
    Location
    Jacksonville, Fl
    MS-Off Ver
    Office 365
    Posts
    6

    Re: How to get Global Address Exchange User information using Email Address

    Excellant, I will give it aa try... Thank you so much for sticking to this I really appreciate it -Dennis

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Need help in pulling out an Exchange Sender's email address in excel
    By nasin123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2021, 12:33 PM
  2. Replace Word bookmark with email address with an new email address
    By VBA_Novice_VBA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2020, 01:56 AM
  3. Update Email Address from Global Address based on Cell Value
    By nasrulla in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2019, 03:19 AM
  4. VBA - 'submit' macro that attaches to email but allows end user to specify email address,
    By blackburnsexcel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2014, 10:19 AM
  5. Getting SMTP Email Address of an Exchange Sender
    By RhettL in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2014, 11:12 PM
  6. Replies: 1
    Last Post: 03-08-2012, 01:57 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1