04-21-2011, 07:12 PM
Hi,
Try with the below example.
Here we go.
Try with the below example.
Here we go.
Code:
str1 = "abcd(%,&,_,?,#,=,-) :xwyz"
str2 = "(%,&,_,?,#,=,-) :"
If (Instr(1,str1,str2)>0) then
Msgbox "Substring is present in given string"
Else
Msgbox "Substring is not present in given string"
End if