#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default warning box

How can I have a message come up when a cell breaks a record.
Example
if A4 is greater than 50 the say new record
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 638
Default warning box

On Oct 20, 9:00 am, delete automatically
wrote:
How can I have a message come up when a cell breaks a record.
Example
if A4 is greater than 50 the say new record


You mean an actual message box? If so, right click the sheet tab
where you want this to take place and select View Code. Then paste
something like this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A4").Text 50 Then _
MsgBox "New Record!!!"
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,979
Default warning box

You can use data validation to display a message. There are instructions
in Excel's Help, and he

http://www.contextures.com/xlDataVal01.html

delete automatically wrote:
How can I have a message come up when a cell breaks a record.
Example
if A4 is greater than 50 the say new record



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default warning box

JW, that worked perfectly. But how can I change the 50 to something else
without getting a compilr error?
Thanks

"JW" wrote:

On Oct 20, 9:00 am, delete automatically
wrote:
How can I have a message come up when a cell breaks a record.
Example
if A4 is greater than 50 the say new record


You mean an actual message box? If so, right click the sheet tab
where you want this to take place and select View Code. Then paste
something like this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A4").Text 50 Then _
MsgBox "New Record!!!"
End Sub


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
Warning Message bollard Excel Worksheet Functions 6 September 12th 07 05:59 PM
Warning Message tom Excel Discussion (Misc queries) 4 December 13th 06 08:23 PM
warning message Mike Excel Discussion (Misc queries) 3 March 10th 06 06:20 PM
Warning!!! Paul Excel Worksheet Functions 6 August 2nd 05 05:58 PM
Warning message Paul Excel Discussion (Misc queries) 1 March 11th 05 11:07 PM


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

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"