excel vba - if "x" = 0 or less than...then

  • Thread starter Thread starter chief
  • Start date Start date
C

chief

I was wondering what formula would be used for

If Sheet5.Range("K7").Value = "<0" Then
Range("K7").ClearContents

The point is that if this cell value is less than equal to or less
than 0, it will clear itself.

Any idea
 
Less than or equal to is just: <= (or =<)

ie

If Sheet5.Range("K7").Value =< 0 Then
Range("K7").ClearContents

Dunca
 

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