Chinese VBA how to detect whether a string is contained in another string

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

Guess you like

Origin blog.csdn.net/weixin_33713503/article/details/93197077