Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

Pop Reminder

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tmdrake - 16 Apr 2008 21:38 GMT
I have a excel spreadsheet that contains the date a request is received and
the date the request is due to the customers.  How do I create a popup that
alerts the user three days prior to the due date, which request are due?  I
will need for the popup to activate everytime the spreadsheet is opened.

Thanks you much
Signature

tmdrake

Office_Novice - 16 Apr 2008 22:58 GMT
Change Ranges to suit and bobs your uncle.

Sub Pop()

Dim PopDate As Range
Dim DueDate As Range

Set PopDate = Range("A1")
Set DueDate = Range("B1")

If PopDate = DueDate - 3 Then
MsgBox "Riminder goes here"
End If

End Sub

> I have a excel spreadsheet that contains the date a request is received and
> the date the request is due to the customers.  How do I create a popup that
> alerts the user three days prior to the due date, which request are due?  I
> will need for the popup to activate everytime the spreadsheet is opened.
>
> Thanks you much
cht13er - 16 Apr 2008 23:55 GMT
On Apr 16, 5:58 pm, Office_Novice
<OfficeNov...@discussions.microsoft.com> wrote:
> Change Ranges to suit and bobs your uncle.
>
[quoted text clipped - 20 lines]
> > --
> > tmdrake

If you want this to run every time the worksheet is opened, place this
code in "ThisWorkbook" code section in the Visual Basic Editor (Alt
+F11 from Excel):

Private Sub Workbook_Open()
Dim PopDate As Range
Dim DueDate As Range

Set PopDate = Range("A1")
Set DueDate = Range("B1")

If PopDate = DueDate - 3 Then
      Call MsgBox("This is a reminder that requests are
due.",vbokonly,"Notice")
End If

End Sub

If you want to produce a list of requests that are due, you could do
that too - it's just a matter of making an array of all cases in which
they're due (post here if you need more help).
HTH

Chris
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.