Excel 97 & VBA Runtime Error 1004 with Find

N

Nickd

I am getting a runtime error 1004
Unable toget the find property of the range class
on the following line

Set c = Worksheets("ListSTB").Range("A1:A100").Find
(Riferimento, LookIn:=xlValues)


This works great the first time but not subsequently.
Additionally, it works great all the time in Excel2000 and
above.

Can anyone help?

Thanks in advance
 
F

Frank Kabel

Hi
try
on error resume next
Set c = Worksheets("ListSTB").Range("A1:A100").Find
(Riferimento, LookIn:=xlValues)
on error goto 0
if c is nothing then
msgbox "nothing found"
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

Top