Sub UserInput() Dim Results As Variant Results = Range("L9").Value If Not (IsNumeric(Results)) Then 'not a number MsgBox "Invalid value for Significance – must be numeric!", vbCritical Range("L9").ClearContents Range("L9").Select ElseIf Results = "<=0" or Results "=>1" Then 'The value must be great than 0 and less than 1 MsgBox "Invalid value for Significance - must not be greater than zero but less than 1!", vbCritical Range("L9").ClearContents Range("L9").Select End If End Sub
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: