+ Reply to Thread
Results 1 to 3 of 3

Sending email with attachment

  1. #1
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Sending email with attachment

    Hello,

    I am using some code to send an automated email. I am calling this sub to fill in the email and attach a text file from c:\temp. I cannot quite figure out how to get the code to message back if the file name does not exist in the location specified. Everything else about it works great, I am just stuck on that part of it. Any help would be GREAT and hopefully I am explaining my problem correctly!

    Thanks

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Sending email with attachment

    Have a look at the Dir function. This should give you the basic idea:
    Please Login or Register  to view this content.
    Post responsibly. Search for excelforum.com

  3. #3
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Sending email with attachment

    Thanks Chippy .... just what I needed. Thanks for your time!

+ 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