ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   HIGHLIGHT A DATE 10 DAYS BEFORE IT IS PAST DUE (https://www.excelbanter.com/excel-programming/320851-highlight-date-10-days-before-past-due.html)

cookie04

HIGHLIGHT A DATE 10 DAYS BEFORE IT IS PAST DUE
 


Charles Harmon

HIGHLIGHT A DATE 10 DAYS BEFORE IT IS PAST DUE
 
Hi,

Try

Sub Past_Due()
Dim fd As Date
fd = Date
If fd = Cells(1, 1).Value + 20 Then
MsgBox "10 day's before past due"
End If
End Sub


"cookie04" wrote in message
...





All times are GMT +1. The time now is 10:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com