ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Message box for overdue dates (https://www.excelbanter.com/excel-programming/393498-message-box-overdue-dates.html)

[email protected]

Message box for overdue dates
 
Hi

i am trying creat a message box which will pop up when a date is
overdue but using the current system date?

any ideas of the code, i have had a fiddle but they have not done what
i need it to do!

Cheers


Chip Pearson

Message box for overdue dates
 
Try something along the lines of

If Range("A1").Value <= Now Then
MsgBox "A1 Is Overdue: " &Format(Range("A1").Value,"dd-mmm-yyyy")
End If

This will display the MsgBox if the value of A1 is earlier than the current
system date and time.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)

wrote in message
ups.com...
Hi

i am trying creat a message box which will pop up when a date is
overdue but using the current system date?

any ideas of the code, i have had a fiddle but they have not done what
i need it to do!

Cheers




All times are GMT +1. The time now is 06:19 AM.

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