+ Reply to Thread
Results 1 to 5 of 5

Attaching a second document to unique emails

  1. #1
    Registered User
    Join Date
    01-28-2014
    Location
    Schenectady, NY
    MS-Off Ver
    Office 365
    Posts
    65

    Attaching a second document to unique emails

    Hi All,
    I have this code, which works perfectly for what I want to do.
    It sends individualized emails and a matching document to each of a list of recipients.
    What I can't figure out is how to add a second document to each.
    Any help would be appreciated.


    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Attaching a second document to unique emails

    I don't quite use your same style of code, but putting a second attachment.add line attached the two files.
    Here's the code I tested on
    Please Login or Register  to view this content.
    If this helped, please click (*) Add Reputation

  3. #3
    Registered User
    Join Date
    01-28-2014
    Location
    Schenectady, NY
    MS-Off Ver
    Office 365
    Posts
    65

    Re: Attaching a second document to unique emails

    my code looks a little different because I'm cycling through a list of Store #'s (example sending an email to store #001, then store #003) and attaching unique documents (Store #001's wage package which is totally different than Store #003's wage package).

    I tried just adding a second "myattachments.add line" but it didn't work.

  4. #4
    Forum Contributor
    Join Date
    09-30-2013
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    229

    Re: Attaching a second document to unique emails

    What file is attached when you do the second attach? The first file or the second?
    I modified your code since I can't iterate through and it showed the two files when I do this. See the screen capture attached
    Please Login or Register  to view this content.
    Capture.PNG

  5. #5
    Registered User
    Join Date
    01-28-2014
    Location
    Schenectady, NY
    MS-Off Ver
    Office 365
    Posts
    65

    Re: Attaching a second document to unique emails

    nevermind. thank you for allowing me to see how boneheaded I was being. i had the wrong file path!

+ 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 automatic emails, from a Excel sheet, attaching a specific .pdf file to each.
    By Darker0ne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2014, 10:01 AM
  2. Send emails from a sheet attaching diferent .pdf files
    By Darker0ne in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-08-2014, 08:55 AM
  3. Attaching .dot templates to individual document
    By Arafat in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2013, 04:49 AM
  4. [SOLVED] Send customized emails to receipient with attaching a .ppt or .doc file
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2012, 01:04 PM
  5. Attaching files to emails
    By Owen Lara Keira in forum Excel General
    Replies: 1
    Last Post: 07-16-2012, 06:05 PM

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