Find

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I use the below code in a macro that I run every day,
been running it for about 2 months now. Its always worked
fine up until last week it started returning a "variable
not set error". I'm baffled I have tried every thing I
could think of including recording it again but... shrugs

Any ideas?


Cells.Find(What:="Current Unapplied Payment Balance:", _
After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart,_
SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False).Activate
 
Hi
after adding a space beore the continuation character '_'
in the second line this works for me
 
ya i took out the space so it would look good in the post

it works for me in the workbook that i recoreded it in
it dose not work in the workbook where i paste it though
 
Hi
could you please post the complete macro. Probably a
wrong/hardcoded workbook/worksheet reference
 

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