+ Reply to Thread
Results 1 to 3 of 3

Email Multiple Attachments From Specified Path

  1. #1
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Email Multiple Attachments From Specified Path

    Hi,

    I have a macro below that I am using to email a single file to a field of recipients (based on primary, CC, etc. email address fields).

    Presently, it's configured to only email a single attachment based on a cell reference (MyFile).
    Using this code below (or perhaps it may require an altogether different code/approach), is there a way to configure it to email multiple attachments to the same recipient(s)?

    For example, I already tried adding a second variable named "MyFile2" and pointed it to Cells(i,6) where I then specified the file name, but I couldn't get it to work.
    Instead of emailing both files (MyFile1 and MyFile2), only MyFile2 was emailed.

    Please Login or Register  to view this content.
    I would definitely be grateful for some help on this, thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Email Multiple Attachments From Specified Path

    Just add another line with another .attachements.add.

    I don't see a reason to open attachment workbooks. Just enter the fullname's for them since you know them.

    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

  3. #3
    Forum Contributor
    Join Date
    05-24-2012
    Location
    Nashville, TN
    MS-Off Ver
    Excel 2007
    Posts
    113

    Re: Email Multiple Attachments From Specified Path

    Quote Originally Posted by Kenneth Hobson View Post
    Just add another line with another .attachements.add.

    I don't see a reason to open attachment workbooks. Just enter the fullname's for them since you know them.

    http://msdn.microsoft.com/en-us/libr...ffice.11).aspx
    I was just about to come here and post my updated solution that does those very things, and saw your comment!

    Here is the code for anyone interested.

    Please Login or Register  to view this content.
    Last edited by hamidxa; 01-05-2015 at 01:26 PM.

+ 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 Outlook email attachments to Local drive(specified Path)
    By Nanimadhu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2014, 08:26 AM
  2. Sending Email with Multiple Attachments from Excel
    By Lisa4legin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2013, 03:24 PM
  3. [SOLVED] Looping Email- Multiple Attachments but I Only Want Selected Attachment
    By cschoyer in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-02-2012, 09:16 AM
  4. Email with multiple attachments
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-12-2011, 09:33 AM
  5. Can I save multiple email attachments using excel automatically?
    By ir26121973 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 03-18-2006, 03:00 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