+ Reply to Thread
Results 1 to 8 of 8

Sending email attachment(s) from Excel 2007

  1. #1
    Registered User
    Join Date
    08-29-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    83

    Sending email attachment(s) from Excel 2007

    Hi All,

    I would like some help generating some code as I wish to send an attachment (located at c:\test.txt) with every email I send from Excel 2007. I have attached the file used to send emails using the UserForm method.

    Cheers
    Ash
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: Sending email attachment(s) from Excel 2007

    nobleprince ,

    pls visit Ron de bruin's website.
    He has a lot of info on this issue.

    http://www.rondebruin.nl/tips.htm

    If you cannot find anything there , pls come back to the forum and open a new thread.

  3. #3
    Registered User
    Join Date
    08-29-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Sending email attachment(s) from Excel 2007

    MarMo / All, could you please send me the code as oppose to the generic link.
    Last edited by nobleprince; 10-19-2010 at 03:40 AM.

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sending email attachment(s) from Excel 2007

    Hi Ash
    You need to simply add one line of code
    Please Login or Register  to view this content.
    I still have an open issue with you. Has it been "Solved"? If so, please mark it as such.

    John
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  5. #5
    Registered User
    Join Date
    08-29-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Sending email attachment(s) from Excel 2007

    Hi John,

    I tried adding single line but nothing happens. Did you manage to attach a file?

    Regards!
    Ash

  6. #6
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sending email attachment(s) from Excel 2007

    Hi Ash

    Yes I tested the procedure with this line of code added
    Please Login or Register  to view this content.
    If C:\test.txt exists, it gets attached. If it dosen't exist nothing gets attached.

    John
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-29-2010
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    83

    Re: Sending email attachment(s) from Excel 2007

    Hi John,

    Thank you it works great.

  8. #8
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Sending email attachment(s) from Excel 2007

    Hi Ash

    Glad it works for you. If you're satisfied with the solution, please mark your thread as solved. A tip of the scales is always appreciated.

    To mark your thread solved do the following:
    - Go to the first post
    - Click edit
    - Click Advance
    - Just below the word "Title:" you will see a dropdown with the word No prefix.
    - Change to Solve
    - Click Save

    John

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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