+ Reply to Thread
Results 1 to 3 of 3

using an outlook procedure to return senders address, not working as expected

  1. #1
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    using an outlook procedure to return senders address, not working as expected

    so i have the following code that is working for the most part:

    Please Login or Register  to view this content.
    the problem is that these two lines (which return the normalized username) don't show the full address (ie [email protected]), it just returns a first and last name. how can i rewrite this so that it returns the full email address?

    Please Login or Register  to view this content.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,532

    Re: using an outlook procedure to return senders address, not working as expected

    Have you tried Msg.SenderEmailAddress? You use it earlier in the same code.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: using an outlook procedure to return senders address, not working as expected

    yes, that didn't work. i wrote this function which returns the senders full email address:

    Please Login or Register  to view this content.
    then i used that in my code above. all is working now as expected

+ 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. Senders Email Address: Outlook 2013 to Excel 2013 Not Working
    By Excel-Access in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-12-2018, 09:48 AM
  2. Outlook script to forward emails based on senders' address
    By Project_paw in forum Outlook Formatting & Functions
    Replies: 5
    Last Post: 02-03-2016, 12:16 PM
  3. Compile error: Expected variable or procedure, not module
    By kaseyleigh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2015, 03:46 PM
  4. Use VBA to send email from Outlook and use senders default signature
    By BillDoor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-21-2015, 11:02 AM
  5. [SOLVED] Extract Senders Email Address
    By Rustyroof in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-21-2015, 08:36 AM
  6. Using macro to find email address in address book of Outlook
    By danfullwood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2014, 06:48 AM
  7. search outlook contacts in excel and return email address to variable
    By wotadude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2008, 06:08 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