+ Reply to Thread
Results 1 to 2 of 2

Elegant way to send Email in Excel to several recipients with an attachment

  1. #1
    Registered User
    Join Date
    05-29-2012
    Location
    Dallas,Texas
    MS-Off Ver
    Excel 2010
    Posts
    58

    Elegant way to send Email in Excel to several recipients with an attachment

    Hi Everyone,
    I wrote a code that filters a sheet based on a criteria, but for the life of me could not find a working guide that works that send an email to a recipient/s with a filtered attachment of a sheet(Data in my case)
    I have a contacts sheet that contains a list of email that I would like to send email from
    Anyone?

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Elegant way to send Email in Excel to several recipients with an attachment

    Hi, so first of all, we need to change some of your code.

    1 - You'll need an attachment variable, containing a file location (ex. "C:\ajsdjasd\iasidfasd\workbook.xlsx")
    2 - First Filter, then Save the workbook, so you can attach it already filtered. Or you can "Workbook.Add" to open a new one, paste the filtered table on to it, save to a location, and put that location+name in the attachment variable =)
    3 - you will need to change your SendTO variable. The outlook accepts recipients as "name1; name2; name3; ..." So I advise you use one cell on your workbook, with
    the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    And then put this cell on your SendTO variable.

    OK, now to the Email VBA, it's quite simple, here:
    Please Login or Register  to view this content.
    John.

    "I excel at jumping to conclusions"

+ 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. Send Email With PDF Attachment Macro to Multiple Recipients
    By Hoover5896 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2018, 10:34 PM
  2. [SOLVED] excel vba to send email to multiple recipients in CC
    By Kimston in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2014, 07:03 AM
  3. [SOLVED] How to send Lotus email with VBA to more recipients and also to more copy recipients
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-20-2013, 03:23 PM
  4. send email from excel to multiple recipients
    By hariexcel1987 in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-13-2013, 01:41 PM
  5. Send worksheet as an attachment to specified recipients via outlook
    By SunOffice in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-19-2011, 05:38 PM
  6. Send email to many recipients and a CC list in Lotus Notes using Excel
    By Jimmy0306 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2009, 01:13 PM
  7. Send email to many recipients using Excel...almost
    By Jimmy0306 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-04-2009, 07:36 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