You could use something like this to evaluate changes to column N or th
14th column.
Code
-------------------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Column = 14 Then
If Target = "sent to TS for payment" Or Target = "sent to Emma" Then
MsgBox "No"
Exit Sub
End If
End If
End Su
-------------------
An alternative is to name the range you want to evaluate instead o
looking at all of column N. In this example, my named range i
"EvalRange".
Code
-------------------
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Intersect(Target, Range("EvalRange")) Is Nothing Then
If Target = "sent to TS for payment" Or Target = "sent to Emma" Then
MsgBox "No"
Exit Sub
End If
End If
End Su
-------------------
If you're just validating input, you might be better off using Data
Validation from Excel and not even use VBA.
HTH,
Steve Hie
--
shie
-----------------------------------------------------------------------
shieb's Profile:
http://www.excelforum.com/member.php...fo&userid=1640
View this thread:
http://www.excelforum.com/showthread.php?threadid=32012