Feb 28 2021 02:54 PM
Feb 28 2021 11:32 PM
I wonder why not using Outlook?
However you need to know it better.
Here is a small example with VBA.
Option Explicit
Sub GMG_test()
Dim lRow As Integer
Dim rngDatum As Range, c As Range
With ActiveSheet
lRow = .Cells(Rows.Count, 4).End(xlUp).Row
Set rngDatum = .Range("D4:D" & lRow)
End With
For Each c In rngDatum
If IsDate(c) Then
If c < Now Then
MsgBox ("Old date")
Call mailen
Else
MsgBox ("New date")
End If
End If
Next c
End Sub
I would be happy to know if I could help.
I wish you continued success with Excel
Nikolino
I know I don't know anything (Socrates)
* Kindly Mark and Vote any reply if it helps please, as it will be beneficial to more Community members reading here.
Mar 01 2021 01:08 PM
I'll look into Outlook, maybe that might be an easier option.
With the VBA code you've written, will that send me an email when due dates are approaching and not from all my sheets?
I was hoping for a video or some more detail as I'm intermediate level on Excel VBA and still learning.
Do I copy your code and paste it into the module as I have 11 sheets on this workbook and only want one sheet example sheet 4 to do this, sorry forgot to mention this earlier.
Thank you for your time and feedback Nikolino.
Mar 02 2021 01:25 AM
SolutionIn the inserted link you will find many good suggestions for solutions in this direction.
As for Outlook, you'd have to read through the rules.
Think that it should work with the rules settings.
Take a look, if you get stuck, just give feedback and I will help you further.
If this information helped you, please mark it as "Best Answer" and as Like (click thumbs up), it will be beneficial to more Community members reading here.
Wish you a nice day
Nikolino
I know I don't know anything (Socrates)
Mar 02 2021 01:09 PM
Mar 02 2021 11:19 PM
Mar 03 2023 07:28 AM
If you are looking for a no-code solution, here are two video demos showing how you can automate email alerts from Excel:
Using Microsoft Power Automate: https://youtu.be/1g7NA5hYYSo
Using my Visual CUT software: https://youtu.be/T72SbTQLUQI