Run Error 13

  • Thread starter Thread starter Jonsson
  • Start date Start date
J

Jonsson

Hi Jim

Actually, I have formulas in "A" getting names from another sheet
=Name(A1) and so on.
If the formula doesnt return any value from Sheet"Name" there is no
problem. The error occours only when formula returns a value(in this
case a name).

Sorry for not mentioned this in my previous post!

Hope that gave a little bit better angle to my problem.

//Thomas
 
Ah! Well if the formula can return a number or a string that causes Excel
97 a problem since an error occurs when you compare a string to a number
(zero in this case).

One thing you could do I think:

Rows(i).EntireRow.Hidden = (CStr(Range("A" & i).Value) = "0")


This always makes it a string to string comparison.


--
Jim Rech
Excel MVP
|
| Hi Jim
|
| Actually, I have formulas in "A" getting names from another sheet
| =Name(A1) and so on.
| If the formula doesnt return any value from Sheet"Name" there is no
| problem. The error occours only when formula returns a value(in this
| case a name).
|
| Sorry for not mentioned this in my previous post!
|
| Hope that gave a little bit better angle to my problem.
|
| //Thomas
|
|
| --
| Jonsson
| ------------------------------------------------------------------------
| Jonsson's Profile:
http://www.excelforum.com/member.php?action=getinfo&userid=5472
| View this thread: http://www.excelforum.com/showthread.php?threadid=275299
|
 

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