required alert msg

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

i'm looking for getting alert msg in excel.
like the current date is 18/3/2007,and i want to get a alert message on
18/1/2007
 
Hi Rahesh,

'--------------------
i'm looking for getting alert msg in excel.
like the current date is 18/3/2007,and i want to get a alert message on
18/1/2007
'--------------------

Unless you can get time to go backwards, you are never likely to see the
alert!


However, try something like:

'=============>>
Private Sub Workbook_Open()
If Date = DateValue("18/01/2007") Then
MsgBox "Your alert message!"
End If
End Sub
'<<=============

This is workbook event code and should be pasted into the workbook's
ThisWorkbook module *not* a standard module or a sheet module:

Right-click the Excel icon on the worksheet
(or the icon to the left of the File menu if your workbook is maximised)
Select 'View Code' from the menu and paste the code.
Alt-F11 to return to Excel.
 
By the way it may also be helpful to note that you can add helpful features
msgbox "Alert Text",vbcritical,"Reminder"

Just some extra, try buttons to add snooze funtionality as well

-John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top