Hi Thai,
Thanks for reply and info…
_.________________________________________________ ___________________
Please try to use code tags when posting codes in Forum Posts:
http://www.excelfox.com/forum/showth...0690#post10690
http://www.excelfox.com/forum/showth...0700#post10700
_.________________________________________________ _________________________

Originally Posted by
Thainguyen
Just one last concern, With your code. Does it check column G, I and K for due date?
Yes: This code line checks for that in 3 columns, G I and K
____If arrIn(Rw, 7) = TdyDbl + 3 Or arrIn(Rw, 9) = TdyDbl + 3 Or arrIn(Rw, 11) = TdyDbl + 3
__________G_____________________________I_______________________________K
That code line checks to see if the dates in the columns are = (Today's date + 3 days)
Code:
If arrIn(Rw, 7) = TdyDbl + 3 Or arrIn(Rw, 9) = TdyDbl + 3 Or arrIn(Rw, 11) = TdyDbl + 3 Then
' check for criteria in Today + 3 days Today + 3 days Today + 3 days
' check in column G Or column I Or Column K
' check in column 7 Or column 9 Or Column 11
arrIn(Rw, 7) holds Column G .Value2
arrIn(Rw, 9) holds Column I .Value2
arrIn(Rw, 11) holds Column K .Value2
( Excel holds dates as a number : https://bettersolutions.com/excel/da...ates-times.htm
.Value2 for 3rd January, 1900 is _ 3
.Value2 for Saturday, 2nd June 2018 is 43253
If today is Saturday, 2nd June 2018, then _ Let TdyDbl = CLng(Now()) = 43253
This will always give 43253: Let TdyDbl = CLng(DateSerial(2018, 6, 2)) = 43253
This will always give 43255 : Let TdyDbl = CLng(DateSerial(2018, 6, 4)) = 43255 (Monday, 4th June, 2018 ) )
_.________________________________________________ ___________________________________

Originally Posted by
Thainguyen
... I believe we should move forward to removing the test date and adding subject and body message and hyperlink to the template.
Yes, I agree.
Much of the information you need is already in this Thread.
But in a few days I will post again and explain with some examples the current and next codes.
So, I will post some more information in a few days

Alan
Bookmarks