Hi,
K2 holds a formula that returns an integer/number.
I would like to test as follows (pseudo code):
If Cells("K2") ..... Is Numeric And > 7 'Then do one thing (1)
ElseIf IsNumeric And < 7 ' 'Then do something else (2)
Else There's something very wrong, so start to panic ! (3)
Basically 1 will be the expected situation, and 2 is a realistic possibility, but rare
3 should not ever be the case.
There is one other test:
If user has deleted the formula but then inserted their own number.
That too would be a problem, so a test for the formula would be good.
Regards and thanks.
Bookmarks