+ Reply to Thread
Results 1 to 11 of 11

Adding a Copy and Paste VBA into Outlook Email

  1. #1
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Adding a Copy and Paste VBA into Outlook Email

    Can someone point me in the right direction on how to add copied cells into the body of my emails?


    What I am wanting to add into the body of the email under the 7 lines would be this table. It starts on L47:U49 and I would love to keep the same format if possible.


    Capture.JPG



    Source code in file attached
    Attached Files Attached Files

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: Adding a Copy and Paste VBA into Outlook Email

    .
    .
    Paste this code into a routine module:

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    Thank you!

    So does this take away from the macro that is already in place? I have my email addresses set to this and I cannot have it just send to one person at a time.

    Edit: I see what it did once I opened it.

    Is there a way to combine what I already have with this? The macro I have already adds the email addresses and wording in email on the 2nd tab "Emailing and Wording"

    This way I can do multiple emails at once and change the wording for each brewery.

    Thanks for any info
    Last edited by burcha22; 04-05-2017 at 09:10 AM.

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,358

    Re: Adding a Copy and Paste VBA into Outlook Email

    There's no code of yours to be seen anywhere ?????
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    I am so sorry. It would not let me #PASTE# the code. I thought it was in the file attachment on the 1st email.

    Here is the original code that I have.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    Here is about as far as I have gotten combining the 2

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    This is what was originally given to me.

    Please Login or Register  to view this content.
    Last edited by burcha22; 04-05-2017 at 02:01 PM.

  8. #8
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    I was able to get everything to work except getting the TO: on the email addresses to work.

    I changed a few things around to get the macro to use just 1 line for the BODY wording, but still am having issues with getting the email addresses to be entered.

    Once that happens, I will switch the "Display" to "Send" and it should loop around and send to all recipients.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    EDIT: I have tried to post the #CODE# but a firewall keeps blocking it. The source code is in the attachment.

  10. #10
    Registered User
    Join Date
    10-04-2016
    Location
    Saint Louis, MO
    MS-Off Ver
    2013
    Posts
    37

    Re: Adding a Copy and Paste VBA into Outlook Email

    Got it to work for what I am doing. Code is in the attachment.
    Attached Files Attached Files

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,446

    Re: Adding a Copy and Paste VBA into Outlook Email

    Sorry I couldn't get back to you today. Dr's visits and lots of errands.

    Glad to see you have it working to your satisfaction. Let me know if there is anything else and we'll see what we can do.

    Cheers.

+ 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. Copy word document and Paste it as body of Email in Outlook (using VBA from Excel)
    By Asacras in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2017, 10:23 AM
  2. With AutoFilter - copy email address in active cell & paste in To field of Outlook email
    By carmen.swanson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-05-2015, 09:40 PM
  3. Help with Copy Range from Tab and Paste In Outlook Email Message Body.
    By N4VBA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-25-2014, 03:40 PM
  4. VBA: Filter, copy, paste to outlook email with text, then repeat
    By z_eeen in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-13-2014, 08:01 AM
  5. Copy and Paste Union of Ranges/Rows to Outlook Email Body
    By darkhunter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2012, 01:52 PM
  6. Copy paste a table in outlook email to excel
    By kishoremcp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-16-2012, 04:41 AM
  7. Copy- paste from Excel to Outlook Express email
    By JERRY in forum Excel General
    Replies: 1
    Last Post: 04-12-2006, 11:54 PM

Tags for this Thread

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