Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default required alert msg

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default required alert msg


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.


---
Regards,
Norman


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 125
Default required alert msg

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


"Norman Jones" wrote:


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.


---
Regards,
Norman



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
alert Brian Excel Discussion (Misc queries) 0 December 21st 06 06:52 PM
How to Create Sound Alert and Email Alert when Macro is Finish Tom Ogilvy Excel Programming 0 November 30th 06 11:12 PM
How to Create Sound Alert and Email Alert when Macro is Finish Bob Phillips Excel Programming 0 November 30th 06 09:21 PM
How to Create Sound Alert and Email Alert when Macro is Finished Bob Davison Excel Programming 0 November 30th 06 08:14 PM
Pop-up Alert Help Thomas Excel Programming 2 September 20th 05 01:27 AM


All times are GMT +1. The time now is 09:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"