#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Find

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Find

Hi
after adding a space beore the continuation character '_'
in the second line this works for me

-----Original Message-----
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


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 141
Default still need help

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


-----Original Message-----
Hi
after adding a space beore the continuation

character '_'
in the second line this works for me

-----Original Message-----
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


.

.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default still need help

Hi
could you please post the complete macro. Probably a
wrong/hardcoded workbook/worksheet reference

-----Original Message-----
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


-----Original Message-----
Hi
after adding a space beore the continuation

character '_'
in the second line this works for me

-----Original Message-----
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


.

.

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find First Non blank cell than find column header and return that value Silver Rose Excel Worksheet Functions 10 April 30th 07 05:56 PM
where to put results of find operation in find and replace functio DEP Excel Worksheet Functions 5 November 15th 06 07:52 PM
Despite data existing in Excel 2002 spreadsheet Find doesn't find AnnieB Excel Discussion (Misc queries) 1 June 16th 06 02:15 AM
How do I find a file/spreadsheet that Excel says is Already open but I can't find it? nwtrader8 Excel Discussion (Misc queries) 5 June 21st 05 02:16 PM
backwards find function to find character in a string of text Ashleigh K. Excel Programming 1 January 14th 04 04:36 PM


All times are GMT +1. The time now is 12:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"