+ Reply to Thread
Results 1 to 2 of 2

Email different people with dynamic body from table

  1. #1
    Registered User
    Join Date
    09-07-2022
    Location
    Berlin
    MS-Off Ver
    365
    Posts
    2

    Email different people with dynamic body from table

    Hi everyone

    I'm completely new to VBA, but I need to take care of automating something at work. I've followed a great Youtube tutorial by Chester Tugwell called "VBA to Automate Sending Email From Excel Table with Attachment from Folder", but instead of attaching an existing file, I need to add an Excel table as part of the email's body. The contents of the table need to be selected from an existing table in a separate file, based on a couple of conditions.

    I have two files (attaching both). One is "Example MList" which is a mailing list, and the other is "Example Surveys", which contains a table with client surveys for cases worked by the recipients listed in the MList. I need the body of each email to contain rows from the Surveys file, where the name of the case owner is equal to the recipient, the date of the case is >= than the date listed in the MList, and the Resolved field =0.

    In the MList file, I've saved the VBA code I have from the Youtube tutorial, but the body part is what I'm having trouble with.

    Any help is much appreciated. First post in this forum, so hopefully I'm not violating any rules or etiquette, but do let me know.

    Cheers
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-07-2022
    Location
    Berlin
    MS-Off Ver
    365
    Posts
    2

    Re: Email different people with dynamic body from table

    This is the code I have so far

    Please Login or Register  to view this content.

+ 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. Hello i'm trying to send the same body email through Outlook to a list of people.
    By mrDoozy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2022, 09:18 PM
  2. [SOLVED] Send Email With Multiple Tables In Body Dynamic Ranges with if Statements
    By theocharis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2020, 05:32 PM
  3. [SOLVED] Macro to email -Part of body of email not displaying in body
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2020, 09:10 AM
  4. VBA Mailto: Sending a body of email from the list of people
    By vankmj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2019, 05:23 AM
  5. 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
  6. [SOLVED] VBA to email specific data from a table to multiple people
    By Teblol in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-27-2016, 04:44 PM
  7. VBA code to send email to the people whose email address is in the Access table
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-30-2014, 05:11 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