+ Reply to Thread
Results 1 to 6 of 6

Set outlook to send email when due date is reached

  1. #1
    Registered User
    Join Date
    10-07-2014
    Location
    wrexham
    MS-Off Ver
    2010
    Posts
    4

    Set outlook to send email when due date is reached

    Hi

    Is it possible to set excel to send an email or alert when a due date is reached. I'm fairly new to using excel and am mostly self taught so have a limited understanding. Basically I have a spreadsheet that when certain dates are reached I need to action was hoping I could get it to set up some kind of pop up alert. I have already set some conditional formatting but could really do with a more notable alert.

    Thanks In Advance for any help

  2. #2
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Set outlook to send email when due date is reached

    Try here:

    http://www.rondebruin.nl/win/section1.htm

    Check the section: Mail Add-ins for Excel for Windows

  3. #3
    Registered User
    Join Date
    10-07-2014
    Location
    wrexham
    MS-Off Ver
    2010
    Posts
    4

    Re: Set outlook to send email when due date is reached

    Thanks for the reply xenixman

    Having read the what's on the link you posted I have tried to adapt this to my needs however I fear this is beyond my capability.

  4. #4
    Registered User
    Join Date
    10-07-2014
    Location
    wrexham
    MS-Off Ver
    2010
    Posts
    4

    Re: Set outlook to send email when due date is reached

    I think I have made some progress on this.

    I can now get it to send an email, however what I need is for an automatic email to be sent based on the dates in Col AL and Col AN these will be the due dates.

    This is what I have so far:
    Option Explicit

    Sub Mail_small_Text_Outlook()

    Dim OutApp As Object
    Dim OutMail As Object
    Dim strbody As String

    Set OutApp = CreateObject("Outlook.Application")
    OutApp.Session.Logon
    Set OutMail = OutApp.CreateItem(0)

    strbody = "Hi there" & vbNewLine & vbNewLine & _
    "This is line 1" & vbNewLine & _
    "This is line 2" & vbNewLine & _
    "This is line 3" & vbNewLine & _
    "This is line 4"

    On Error Resume Next
    With OutMail
    .To = "[email protected]"
    .CC = "another email address"
    .BCC = "another email address"
    .Subject = "STREETWORKS NOTICE"
    .Body = "This is an automated message generated to notify of streetworks notice due"

    .Send

    End With
    On Error GoTo 0

    Set OutMail = Nothing
    Set OutApp = Nothing
    End Sub

    Any suggestions as to what I can add to make this work the way I need it to?

    Many Thanks

  5. #5
    Forum Contributor
    Join Date
    04-07-2009
    Location
    Rowley
    MS-Off Ver
    Excel 2007
    Posts
    326

    Re: Set outlook to send email when due date is reached

    Sorry, I can't be of more assistance, but my VBA skills are just above nil..

    Hopefully, someone with more skill in VBA will jump in and offer some pointers.

    But, on the Ron de Bruin site there are many examples of the macros he uses,
    look here:

    http://www.rondebruin.nl/win/s1/outlook/mail.htm

    Each has it's own macro which you can study.

    Also, here is another site that may be of assistance:

    http://www.*****-clicks.com/excel/olAutomating.htm

    Again, sorry I can't be of more help.

    EDIT ADDED:
    For what ever reason, the web site will not post the url for the second site,
    it should read "****-clicks" dot com

    EDIT ADDED Again:
    Seems the software does not like the name D i c k
    So we'll try this, the url should be "d i c k s - c l i c k s"
    I know it sounds sketchy, but it's a legit site.
    Last edited by xenixman; 10-08-2014 at 11:37 AM.

  6. #6
    Registered User
    Join Date
    10-07-2014
    Location
    wrexham
    MS-Off Ver
    2010
    Posts
    4

    Re: Set outlook to send email when due date is reached

    Thanks for the links.

    My VBA skills are pretty dismal too, have to admit most of what I've done has started life on the net.


    Think I'll leave the slightly dodgy sounding link till I'm at home just in case my employers question my actions.

+ 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. [SOLVED] Send email from excel using outlook on a specific date
    By Eyeson in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-09-2014, 01:47 AM
  2. How To Have Email Notification 30 Days Before Due Date Send To Outlook
    By Blizzard13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-23-2013, 10:20 AM
  3. Replies: 0
    Last Post: 06-05-2013, 04:31 AM
  4. Outlook email sent when date is reached
    By Dubby20 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-02-2013, 10:19 AM
  5. Replies: 5
    Last Post: 02-22-2013, 02:00 AM

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