Sub test() AAA = " Nanjing Jianye water 34 Simon Street, Jiangsu Province " the If the InStr (AAA, " Jianye " ) <> 0 the Then MsgBox " Inside " Else MsgBox " not there ." End If End Sub
Reproduced in: https: //www.cnblogs.com/onelikeone/p/11060240.html