Ignore Text, function only for numerical values

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi I'm using a loop function to evaluate the value in a cell and perform a
desired function, then moves on to the next row until it reaches the last row
in my sheet.

My evalution criteria is (but I need help fixing it):
if activecell <>0 Or activecell="" then
Something
else
SomethingElse
End if

Here my question:
How can I change my if statement to only do Something if the value in the
cell is a number (ignore textual entries) and is different than 0 or is empty

Thanks for the help

Daniel
 
My evalution criteria is (but I need help fixing it):
if activecell <>0 Or activecell="" then
Something
else
if isnumeric(activeCell) then
if activeCell.Text <> "0" then
SomethingElse
end if
end if
End if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top