+ Reply to Thread
Results 1 to 2 of 2

Copy table from excel and send as html email body

  1. #1
    Registered User
    Join Date
    01-26-2020
    Location
    Warsaw, Poland
    MS-Off Ver
    365
    Posts
    28

    Copy table from excel and send as html email body

    Hi, is there a way to copy table (or really 3 tables) of variable range from excel and create an email (or really 3 emails) with this table as part of the body? I'm attaching mockup of the file that I'd be using and it is static. It originally pulls data from many sources and there are formulas which make number of items variable depending on the request.

    So what I would need is in the tab "Request_Macro" to copy non-empty rows for Algeria, add row with deadlines and send the table to :[email protected], CC: [email protected], copy non-epty rows for Brazil, add row with deadlines and send the table to [email protected], CC: [email protected], etc.

    I'm building on my old file with macro to send email, but it was very simple. What I need is beyond my understanding of VBA If you have any idea how this can work - please help me. I was trying to find some answers on the forum, but could not find anything like this. Thanks, M.
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Copy table from excel and send as html email body

    Hi

    This is more less what your looking for:

    Please Login or Register  to view this content.
    Paste in Module and assign SendEmails into button (already done in attached file).
    That needs some tweaks to calculate and declare ranges only for non-empty lines.

    p.s. *LANG PL=ON* Pozdrowienia dla stolicy *LANG PL=OFF*
    Attached Files Attached Files
    Last edited by KOKOSEK; 07-06-2021 at 03:57 AM.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. Code to send email with table on the email body via gmail
    By ivhee00 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-19-2017, 12:24 AM
  2. [SOLVED] VBA to send email using data from the EXCEL including email address, subject and body text
    By ec4excel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2016, 11:07 AM
  3. [SOLVED] Send Table/Range of Cells As Part of Body through Outlook(HTML) using VBA
    By richardking in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-30-2016, 08:58 PM
  4. Copy and paste text and a chart into Html Email body
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2014, 09:22 AM
  5. How to send email from excel using VBA with Cell Range (Including Images) as Email Body
    By Novice_To_Excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 05:06 AM
  6. [SOLVED] body of email disappears when I send an email from Excel
    By ~A in forum Excel General
    Replies: 1
    Last Post: 05-16-2012, 05:22 AM
  7. Excel macro to send HTML Body email
    By Benjamin2008 in forum Excel General
    Replies: 1
    Last Post: 05-01-2010, 05:29 AM

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