One easy way (not sure it is the best) is to do the following:Originally Posted by ratvoleur
Function number(n As Variant) As Variant If IsNumeric(n) Then number = n + 1 Else Call MsgBox("Error", vbCritical ) number = "" End If End Function
One easy way (not sure it is the best) is to do the following:Originally Posted by ratvoleur
Function number(n As Variant) As Variant If IsNumeric(n) Then number = n + 1 Else Call MsgBox("Error", vbCritical ) number = "" End If End Function