+ Reply to Thread
Results 1 to 3 of 3

Macro sending email from different email address.

  1. #1
    Registered User
    Join Date
    04-25-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    69

    Macro sending email from different email address.

    Hello!

    I have a macro that sends out an email from Outlook. I have two email addresses set up on my desktop Outlook account. Is it possible to have the macro specify which email address to send from? At the moment, I always have to change it in the email itself (from [email protected] to [email protected]) and am wondering if it would be possible to not have to do this. Thanks!

    Please Login or Register  to view this content.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Macro sending email from different email address.

    There is a SenderEMailAddress property of the MailItem object
    Martin

  3. #3
    Registered User
    Join Date
    04-25-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Macro sending email from different email address.

    Dear Martin,

    Sorry, I should have specified that I´m new to all of this! Is there a line I add in to the code to specify the SenderEmailAddress? I tried putting [email protected], but I'm clearly doing something wrong.

    Thanks!

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Macro sending email from different email address.

    Try

    Please Login or Register  to view this content.

+ 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. automation/macro for sending email to multiple email address
    By saurabhlotankar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2013, 12:13 PM
  2. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  3. Sending Email with email address in cell 22
    By albert28 in forum Excel General
    Replies: 1
    Last Post: 01-19-2012, 11:24 AM
  4. Replies: 6
    Last Post: 12-02-2011, 02:14 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