+ Reply to Thread
Results 1 to 6 of 6

Macro to send email from Excel.

  1. #1
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Macro to send email from Excel.

    Hi,

    Could some one help with the code to extract the data from email content tab instead of the code I have given in .body itself.

    In the attached I have made the email content (.Body) on the macro code itself. Is it possible to have the macro edited to have the email content taken from the tab "Email content"

    Regards,
    Vijay
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to send email from Excel.

    Could anyone please help me. I am looking for the email body to get extracted from "Email content" tab.

  3. #3
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: Macro to send email from Excel.

    Change your .body line to this
    Please Login or Register  to view this content.
    You'll need to expand this to include your full range.

  4. #4
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to send email from Excel.

    This works from email content tab. But how to change the value for each row to populate in email content tab. For eg the vendor name and invoice number should show up for each row.

  5. #5
    Forum Contributor
    Join Date
    07-26-2012
    Location
    USA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    351

    Re: Macro to send email from Excel.

    Please Login or Register  to view this content.
    You need to work with this part of the code. Keep adding it to .Body, the "vbNewLine" will put whatever values you want next on a new line in your email

  6. #6
    Forum Contributor
    Join Date
    01-05-2011
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    243

    Re: Macro to send email from Excel.

    I am not looking to have the next on new line. I want each row details to show in the body of the email. That means first row details in first email and second row details in the second row.

    Regards,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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