+ Reply to Thread
Results 1 to 8 of 8

Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-mail

  1. #1
    Registered User
    Join Date
    08-02-2012
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    25

    Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-mail

    Hello,

    I'm trying to send an e-mail with VBA. Nothing complicated so far. I found a code that allows me to "Paste" a selection into the e-mail I want to send.
    Please Login or Register  to view this content.
    The only problem with this is that it creates the e-mail on my Excel Worksheet. I can then press send to send the e-mail.

    What I would like to do is the same thing but openning an E-mail in Outlook.
    You know what I mean? By calling:
    CreateObject("Outlook.Application") and OutMail = OutApp.CreateItem(0)
    The code to send open an E-mail with outlook is this one (it also adds the workbook as an attachement).
    Please Login or Register  to view this content.
    So I guess I need something in between. I would like to be able to copy/paste a Range in my active sheet (like in the first code) in a new e-mail message that pops up from Outlook (like in the second code).
    Were my explanation clear enough?

    Thanks a lot for your help!!
    Last edited by Jeffy14; 08-07-2012 at 11:48 AM.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Hi Jeffy14
    Please insert Code Tags around your code then see this link
    http://www.rondebruin.nl/mail/folder2/mail4.htm
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    08-02-2012
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Quote Originally Posted by jaslake View Post
    Hi Jeffy14
    Please insert Code Tags around your code then see this link
    http://www.rondebruin.nl/mail/folder2/mail4.htm
    Hello,

    Thank you for your quick reply!
    You replied so fast that you saw my message just before I updated it with the Code tags one minute later.
    Thanks I'll check it out!

  4. #4
    Registered User
    Join Date
    08-02-2012
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Quote Originally Posted by jaslake View Post
    Hi Jeffy14
    Please insert Code Tags around your code then see this link
    http://www.rondebruin.nl/mail/folder2/mail4.htm
    Hello again,

    I checked it out and I had already seen that. This code Copy/Paste a range in the workbook and put it as an attachment.
    Im looking to put the range I copy paste in the body of the email
    Can you help me with that please?
    I'

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Hi Jeffy14

    I sent you the wrong link...try this...if you need help adapting let me know.
    http://www.rondebruin.nl/mail/folder3/mail4.htm

  6. #6
    Registered User
    Join Date
    08-02-2012
    Location
    paris
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Quote Originally Posted by jaslake View Post
    Hi Jeffy14

    I sent you the wrong link...try this...if you need help adapting let me know.
    http://www.rondebruin.nl/mail/folder3/mail4.htm
    Thx a lot for your help.
    It works great. I should have seen it before.... sorry

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Glad it works for you.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,444

    Re: Sending Outlook E-mails with VBA and Copy / Pasting a range into the body of the e-ma

    Ron also has an add-in to do the trick, but his site seems to be down for the moment

+ 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