PDA

View Full Version : Finding String2 in String1



mlingaswamy
06-04-2009, 02:42 AM
Challenge is :

I need to find a string in another stirng.

For Ex:

string1 = "The Closing Balance is"
string2 = "Closing Balance"

Answer should be : string2 is found in string1 or not

Thank you,

p45cal
06-04-2009, 03:07 AM
string1 = "The Closing Balance is"
string2 = "Closing Balance"
If InStr(string1, string2) > 0 Then MsgBox "'" & string2 & "' is found in " & "'" & string1 & "'" Else MsgBox "Not found"

Aussiebear
08-07-2015, 04:28 PM
I understand you have made a request to have this thread removed. At this point in time, I do not see any reason to do so. Please PM me to discuss this request further.