Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Crazy Horse
 
Posts: n/a
Default create a pop-up alert when a condition is reached in excel

How does one create a pop-up or e-mail alert when a condition is reached in
excel.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul Mathews
 
Posts: n/a
Default create a pop-up alert when a condition is reached in excel

You might try something like this:

If PutConditionHere Then MsgBox "Condition has been reached", vbOKOnly,"Alert"

"Crazy Horse" wrote:

How does one create a pop-up or e-mail alert when a condition is reached in
excel.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Paul Mathews
 
Posts: n/a
Default create a pop-up alert when a condition is reached in excel

I should elaborate by saying that you'll need to put this line of code in the
Worksheet_Change sub of the sheet that holds the condition. For example, if
you wanted a message to appear after cell A1 on Sheet1 reaches the value 100,
you'd
want something like this for the Sheet1 Excel Object:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = 100 Then _
MsgBox "A1 has reached limit", vbOKOnly, "Alert"
End Sub

"Crazy Horse" wrote:

How does one create a pop-up or e-mail alert when a condition is reached in
excel.

  #4   Report Post  
Posted to microsoft.public.excel.misc
Crazy Horse
 
Posts: n/a
Default create a pop-up alert when a condition is reached in excel

Paul, Thank you for your response.

I can see how that will work if you have fixed cells, but I am looking for
something more flexible. Let me elaborate a bit. I have developed an shared
excel spreadsheet that has date deadlines associated with specific individual
projects. I have set up conditional alerts that turn the cell red when the
deadlines are reached. What I am looking for is a way to either produce an
e-mail alert notifying specific individuals when the deadlines have been
reached along with the project name and description of the alert, or as an
alternative build a report listing all the conditional deadlines have been
reached, along with the name of the project. How would one go about in
doing this? Thanks again.


"Paul Mathews" wrote:

I should elaborate by saying that you'll need to put this line of code in the
Worksheet_Change sub of the sheet that holds the condition. For example, if
you wanted a message to appear after cell A1 on Sheet1 reaches the value 100,
you'd
want something like this for the Sheet1 Excel Object:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = 100 Then _
MsgBox "A1 has reached limit", vbOKOnly, "Alert"
End Sub

"Crazy Horse" wrote:

How does one create a pop-up or e-mail alert when a condition is reached in
excel.

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
create excel based standalone application Pete_R Excel Discussion (Misc queries) 0 December 4th 05 11:59 PM
how to create the formula "cumsum" in excel paulc59 Excel Worksheet Functions 5 November 26th 05 02:58 AM
Create database in excel? wirthless New Users to Excel 7 October 30th 05 02:57 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
create price list from excel sheet -keevill- Excel Discussion (Misc queries) 1 February 8th 05 12:02 AM


All times are GMT +1. The time now is 11:43 PM.

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

About Us

"It's about Microsoft Excel"