
09-10-2003, 11:21 AM
|
|
Contributor
|
|
Join Date: Aug 2003
Location: Norway
Posts: 450
|
|
How about this?
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim val As String
val = Target.Value
If IsNumeric(val) Then
If val <= 99 Or val >= 101 Then
MsgBox "Error"
End If
End If
End Sub
If you have other cells with numbers you might want to add a check to see if the Target.Numberformat is % (not sure of the fastest way of doing this).
-Terry
|
|