Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If c Like "*insurance company*" then
Unless the user has an Option Compare Text statement in his/her code window, your test above will be case sensitive. If you want to use the Like operator, then you could try it this way... If LCase$(c) Like "*insurance company*" Then however, I'm thinking this might be better... If InStr(1, c, "insurance company", vbTextCompare) Then Rick |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and Replace - Replace with Blank Space | Excel Discussion (Misc queries) | |||
Find/Replace Event or Find/Replace for Protected Sheet ... | Excel Programming | |||
find and replace - replace data in rows to separated by commas | Excel Worksheet Functions | |||
Using Find and Replace to replace " in a macro | Excel Programming | |||
Replace method - cannot find any data to replace | Excel Programming |