H
Hawk
I would like an IF statement to return TRUE if the value
in a cell is a number greater than 0. I would like to do
it in one statement, but I am having troubgle since VBA
does not do short circuit evaluation. I realize that I
can do:
If Isnumeric(Range("A1")) then
If Range("A1")> 0 then
However, it would be nice to do it in one statement. If I
try:
If Isnumeric(Range("A1")) and Range("A1")> 0 then
I get an error when the user enters a non-numeric value
due to the second half of the conditional. Any ideas
would be greatly appreciated (and NO I cannot use Excel's
built-in Data Validation). TIA...
in a cell is a number greater than 0. I would like to do
it in one statement, but I am having troubgle since VBA
does not do short circuit evaluation. I realize that I
can do:
If Isnumeric(Range("A1")) then
If Range("A1")> 0 then
However, it would be nice to do it in one statement. If I
try:
If Isnumeric(Range("A1")) and Range("A1")> 0 then
I get an error when the user enters a non-numeric value
due to the second half of the conditional. Any ideas
would be greatly appreciated (and NO I cannot use Excel's
built-in Data Validation). TIA...