Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sarah Ward
 
Posts: n/a
Default Find and Go to Value

Hi there

I'm running a macro that someone at my work wrote who's now left, and I'm
struggling with one line of it. I know what it does - it identifies the first
instance of a value (ZXYZXY) occurring, and goes to it. But I can't actually
understand the line of code, and I need to.

It goes: WHILE(FORMULA.FIND("ZXYZXY",1,1,1,1,FALSE))
If someone could tell me what each 1 is in place for, and the FALSE etc.
that would be great.

Cheers, Sarah.
  #2   Report Post  
Sarah Ward
 
Posts: n/a
Default

Hi again. Someone else answered my question very fully on another site, so
I'll post their answer here, so that anyone else with the same question will
have an answer.

The syntax for FORMULA.FIND is as follows:
FORMULA.FIND(text,in_line,at_num,by_num,dir_num,ma tch_case)
whe
text is the text you are searching for
in_line is what you are looking for the text in (1=formula;2=value;3=notes)
at_num is full word or not (ie 1=whole string;2=whole or part string)
by_num is how the program searches for it (1=row;2=column)
dir_num is what order the program searches for it(1=next occurrence;2=prev)
match_case is whether or not it is case-sensitivie(TRUE=yes;FALSE=no)

Cheers, hope this helps, Sarah.

"Sarah Ward" wrote:

Hi there

I'm running a macro that someone at my work wrote who's now left, and I'm
struggling with one line of it. I know what it does - it identifies the first
instance of a value (ZXYZXY) occurring, and goes to it. But I can't actually
understand the line of code, and I need to.

It goes: WHILE(FORMULA.FIND("ZXYZXY",1,1,1,1,FALSE))
If someone could tell me what each 1 is in place for, and the FALSE etc.
that would be great.

Cheers, Sarah.

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
How do I compare data in two worksheets to find matching cells? Gary Excel Discussion (Misc queries) 4 March 2nd 06 09:04 PM
Using the Find tool in EXCEL TK Excel Worksheet Functions 2 February 11th 05 07:51 PM
Find all text instances in a sheet and add one number from each row Greg Excel Discussion (Misc queries) 1 January 31st 05 11:45 PM
Excel has a "Find Next" command but no "Find Previous" command. Michael Fitzpatrick Excel Discussion (Misc queries) 2 January 10th 05 11:45 PM
VB Find and Replace Bony_Pony Excel Worksheet Functions 10 December 6th 04 05:45 PM


All times are GMT +1. The time now is 04:52 AM.

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

About Us

"It's about Microsoft Excel"