+ Reply to Thread
Results 1 to 2 of 2

Copy Paste multiple tables from multiple sheets into Outlook email

  1. #1
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    Copy Paste multiple tables from multiple sheets into Outlook email

    Using Office 2013
    I am trying to create a macro that will create an outlook email, copy several pivot tables (all have named ranges) from three different sheets within a workbook then paste them along with text that falls above and between some of the tables into the body of the email. It will also attach a copy of the report and use distribution lists from two different named ranges containing the recipients for the To: and CC: fields.
    I have tried using and modifying the code from Ron de Bruin's website, but it's not working. It creates the email with the attachment & recipients but the body of the email is empty.

    The email layout and code are below and a screenshot pic is attached.

    Layout:
    BODY TEXT LINE1 MM-DD-YYYY (TEXT SHOULD BE HIGHLIGHTED AND BOLDED).*
    BODY TEXT LINE2 ## (TEXT SHOULD BE HIGHLIGHTED AND BOLDED) .*ABCDEFHIJKLMNOP.
    *
    BODY TEXT LINE3 ABC – ABCDEFJHIJKLMNOP.*
    *
    BODY TEXT LINE4.*
    *
    BODY TEXT LINE5.*
    SHEET1.TABLE1

    BODY TEXT LINE2
    SHEET2.TABLE2
    SHEET2.TABLE3

    SHEET3.TABLE4

    SHEET3.TABLE5
    VBA Code
    Please Login or Register  to view this content.
    Function Code
    Please Login or Register  to view this content.
    EmailBodySample.jpg

  2. #2
    Registered User
    Join Date
    09-05-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    71

    Re: Copy Paste multiple tables from multiple sheets into Outlook email

    No help?

+ 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 and paste - multiple sections thru multiple sheets
    By brose99 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2015, 04:02 PM
  2. Code NOT working properly - Copy/Paste Multiple Tables
    By Blackhawks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2014, 12:18 PM
  3. macro to copy mulitiple sheets to Outlook email (keyword being multiple)
    By garzajd3 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-22-2012, 05:33 AM
  4. 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
  5. Copy data from multiple sheets and paste into multiple as well
    By Bishonen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2012, 10:26 AM

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