C
Christiane
The problem I have now is that I want to display a message box whe
value "solvent 1225" is entered in a range.
It works, but if that value is already in the range, I get the messag
box twice, if the data is there 3 times, the message box appears
times.
I want the message box to appear only once, even though the same valu
is in the range.
Can anyone help me?
Christiane
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
For Each c In Worksheets("Sheet1").Range("A:A")
If c.Value = "solvent 1225" Then
MsgBox "DO NOT ORDER MORE THAN 50,000!", vbCritical
"Warning!"
End If
Next c
Application.EnableEvents = True
End Su
value "solvent 1225" is entered in a range.
It works, but if that value is already in the range, I get the messag
box twice, if the data is there 3 times, the message box appears
times.
I want the message box to appear only once, even though the same valu
is in the range.
Can anyone help me?
Christiane
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
For Each c In Worksheets("Sheet1").Range("A:A")
If c.Value = "solvent 1225" Then
MsgBox "DO NOT ORDER MORE THAN 50,000!", vbCritical
"Warning!"
End If
Next c
Application.EnableEvents = True
End Su