warning box

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

Guest

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
 
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
 
JW, that worked perfectly. But how can I change the 50 to something else
without getting a compilr error?
Thanks
 

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