FoeHunter
Board Regular
- Joined
- Nov 12, 2008
- Messages
- 236
I have a macro that I use to identify who is coming due or is overdue for training
ORIGINAL
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
Supervision liked the idea, but wanted to be able to differentiate between those who are overdue and those who are coming due. The over due part was simple.
<o
></o
>
OVERDUE ONLY
<o
></o
>
My problem is I can’t think of a way to only identify those who’s training will expire within the next 30 days. Any help would be appreciated.
<o
></o
>
-Thank you
ORIGINAL
PHP:
For itm = 2 To 275
Range("I" & itm).Value = _
Evaluate("=IF(AND(TODAY()+30>=DATE(YEAR('Certificate Overview'!G" & itm & "),MONTH('Certificate Overview'!G" & itm & ")+0,DAY('Certificate Overview'!G" & itm & "))),CELL(""contents"",'Certificate Overview'!A" & itm & "),"""")")
Next itm
Supervision liked the idea, but wanted to be able to differentiate between those who are overdue and those who are coming due. The over due part was simple.
<o
OVERDUE ONLY
PHP:
For itm = 2 To 275
Range("I" & itm).Value = _
Evaluate("=IF(AND(TODAY()+0>=DATE(YEAR('Certificate Overview'!G" & itm & "),MONTH('Certificate Overview'!G" & itm & ")+0,DAY('Certificate Overview'!G" & itm & "))),CELL(""contents"",'Certificate Overview'!A" & itm & "),"""")")
Next itm
My problem is I can’t think of a way to only identify those who’s training will expire within the next 30 days. Any help would be appreciated.
<o
-Thank you