View Single Post
  #2   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

From Excel VBA help (about InStr VBA function):
InStr Function: Returns a Variant (Long) specifying the position of the
first occurrence of one string within another.
Syntax: InStr([start, ]string1, string2[, compare])

From Excel help (about FIND worksheet function):
FIND finds one text string (find_text) within another text string
(within_text), and returns the number of the starting position of find_text,
from the first character of within_text. You can also use SEARCH to find one
text string within another, but unlike SEARCH, FIND is case sensitive and
doesn't allow wildcard characters.
Syntax: FIND(find_text,within_text,start_num)


As you see, none of them returns a string (and neither does Access InStr
function) - all of them return the starting position of one string in
another.


Arvi Laanemets



"Clausius" wrote in message
...
I find "InStr" quite usefull in Access and am curious if there is an
equivalent in excel. I've tried Find and Search but they don't return the
actual string of interest, they just tell you true or false (return 1 or

0).