+ Reply to Thread
Results 1 to 10 of 10

Sending Automatic emails from Excel

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Sending Automatic emails from Excel

    Hi All,

    I have tried to create a workbook where an automatic email will be sent to a specified email adress from Outlook, 4 weeks before a contractor is due to finish.

    However, I keep finding issues. Please could soemone help? I am very new to all this and am totally stuck.

    If you need anymore info please let me know.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sending Automatic emails from Excel

    Just a note to everyone - this tries and sends an e-mail when you open it!

    Alice - What are the issues?

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Sending Automatic emails from Excel

    Hi yudlugar ,

    Thanks so much for getting back to me.

    As I said I am very new to this and am maybe just not inputting the correct information. How did you check that it worked?

    Alice.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sending Automatic emails from Excel

    You have a workbook_open event that calls the macro for sending an e-mail. So when I opened the workbook it tried to send an e-mail to the address on the worksheet.

    I'm still not sure what the problem is - it seems to be ok?

  5. #5
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Sending Automatic emails from Excel

    Hi Again,

    OK, I think I am getting somewhere with it. I can send an email too now :-)

    However, I need the email to detail the contractors name in column A. Could you help me with how to input this to this script?

    Please Login or Register  to view this content.
    Somewhere in there I am guessing.

    I also need the email to be sent 4 weeks before the expiry date, I think teh sheet is currently set to 5 days and I do not know how to alter this.

    Thanks again so much for your help!
    Last edited by arlu1201; 05-26-2013 at 01:08 PM.

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sending Automatic emails from Excel

    Please Login or Register  to view this content.
    Try that

  7. #7
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Sending Automatic emails from Excel

    Thanks again, so grateful for your help!

    That is looking much better, Is it possible for the Expiry date to be shown in the email also.

    I will be changing the text to say something like 'This contract expires on...'

    Also for the email to be prompted from 20 days before the contract is due to end?

    So grateful for the help!

  8. #8
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Sending Automatic emails from Excel

    No problem, this line:
    Please Login or Register  to view this content.
    Is what is going in your e-mail so you want to change it to:
    Please Login or Register  to view this content.
    This bit:
    Please Login or Register  to view this content.
    Is the instruction for how many days before expiry to send the email, so change 28 to whatever number of days you need.

  9. #9
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Sending Automatic emails from Excel

    This is amazing, Thanks so much!

    Now, just one more thing. Is it possible to add URGENT to the email, either in the body or the subject if the contract is due to expire in the next 10 days?

    Thanks!!

  10. #10
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sending Automatic emails from Excel

    Alice,

    Welcome to the forum.

    I have added code tags to your 5th post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. In order to put code tags, either type [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] at the end of it, OR you can highlight your code and click the # icon at the top of your post window.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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