Getting error in code

  • Thread starter Thread starter Jim May
  • Start date Start date
J

Jim May

Code I prepared at home on Excel XP, when brought to work
and run on Excel 2000 is halting on last line,
highlighting "SearchFormat:=": <<What's the prob?>>
Probably has to do with the Tools, References.. which
I'm not familiar with like I'm gonna be...LOL
TIA,

Dim MyKey As String
....
....
MyKey = Cells.Find(What:="1)Insu", After:=ActiveCell,
LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows,
SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
 
hi,
Try changing to this
MyKey = Cells.Find(What:="1Insu"), After:=ActiveCell,
I am not sure what Inus is.

note: it is not wise to write code in a applicatin version
higher that the version the code will be run in.
code should be written on the version that it will run in.
many time there are no problems but sometime there are.
 
Thanks Norman;
I did remove-it and did a re-run;
but it bombed and highlighted the entire statement;
Any suggestions as to a remedy
 
Forget the above; I tried it again after removing it
and it worked!! I must have screwed up the 1st try;
can't imagine... LOL
Thanks to all,
 

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