error code help

  • Thread starter Thread starter vbidiot
  • Start date Start date
V

vbidiot

i want to write an error statement but it's not working for me.
The code below works when the cell value equals #n/a BUT it screws up
my macro when the the cell value doesn't equal #n/a. I'm getting an
error 13...
I tried to use an error 13 statement but no such luck either. Here's my
code below.


Code:
--------------------

If Range("ssn") = CVErr(xlErrNA) Then
MsgBox ("NAME NOT FOUND!!!!")
Exit Sub
End If
 
I was trying to use the ISerror but I was screwing it up royally!
Thank you sir for the quick reply. Hopefully I can help you someday...I
doubt I will be able to...but you never know:)
 

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