Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If InStr(1, Source, "input_range", vbTextCompare) Then
You have to consider if the CASE makes a difference in you text. You may want to force all text to uppercase before you do a comparison. Instr is case sensitive, while using "=" is not case sensitive. InStr has optional arguments... if you specify the optional starting point for your search in the 1st argument, then an optional 4th argument is available to take care of casing issues. In my statement above, vbTextCompare forces a case insensitive search to take place (you can specify vbBinaryCompare which forces an case sensitive search to take place, but specifying it is unnecessary as it is the default condition for searches when not specified). Rick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find specific info using search string using VBA | Excel Discussion (Misc queries) | |||
Easiest way to find differences between Rows? | Excel Discussion (Misc queries) | |||
Search/Match/Find ANY part of string to ANY part of Cell Value | Excel Worksheet Functions | |||
FIND / SEARCH text compare cell to string in 3rd cell | Excel Discussion (Misc queries) | |||
search a string withing a string : find / search hangs | Excel Programming |