VBA 如何检测一个中文字符串是否包含在另一个字符串中

Sub test()
    aaa = "江苏省南京市建邺区水西门大街34号"
   If InStr(aaa, "建邺") <> 0 Then
      MsgBox "在里面"
   Else
    MsgBox "不在里面"
End If

End Sub

转载于:https://www.cnblogs.com/onelikeone/p/11060240.html

猜你喜欢

转载自blog.csdn.net/weixin_33713503/article/details/93197077