PC Review


Reply
Thread Tools Rate Thread

create messagebox when a date is overdue

 
 
=?Utf-8?B?Q2VidWJ1bQ==?=
Guest
Posts: n/a
 
      17th Jul 2007
When I open a workbook in Excel, I want to have a messagebox pop up if there
are due dates not completed. For example: Cell A1 has a Due Date. Cell B1 has
a Date Completed. If on the due date, or a specified number of days prior to
the due date, the Date Completed is not populated, I want a messagebox saying
"Task is due on [date] and is not completed."

Any help would be appreciated.

Cebubum
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      17th Jul 2007

With Activesheet
iLastRow = .Cells(.Rows.Count,"A").End(XlUp).Row
For i = 1 To iLastRow
If .Cells(i,"A").Value >= Date - 5 Then
If .Cells(i,"B").Value = "" Then
MsgBox "Item overdue on " & Format(.Cells(i,"A").Value,
"dd mmm yyyy")
End If
End If
Next i
End With

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Cebubum" <(E-Mail Removed)> wrote in message
news:74A2F8BF-2816-4B92-A7A3-(E-Mail Removed)...
> When I open a workbook in Excel, I want to have a messagebox pop up if
> there
> are due dates not completed. For example: Cell A1 has a Due Date. Cell B1
> has
> a Date Completed. If on the due date, or a specified number of days prior
> to
> the due date, the Date Completed is not populated, I want a messagebox
> saying
> "Task is due on [date] and is not completed."
>
> Any help would be appreciated.
>
> Cebubum



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: overdue date color BruceM Microsoft Access Forms 0 4th Jun 2009 12:39 PM
RE: Calculating overdue date fields Sheeloo Microsoft Excel Worksheet Functions 0 8th Dec 2008 07:10 PM
can I create a overdue warning for a date field in access reminder in access Microsoft Access 1 19th Feb 2008 06:37 PM
Trying to create an overdue message based on set dates =?Utf-8?B?Q3JhaWc=?= Microsoft Excel Misc 5 23rd Nov 2007 04:05 PM
need an overdue date to highlight =?Utf-8?B?U2FyZ2U=?= Microsoft Excel Misc 1 3rd Feb 2005 07:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:33 AM.