2013-10-09 49 views

回答

1

If Instr(x, "9999999") > 0 Then ...應該這樣做。

1

您可以使用Like運算符。

Sub test() 

Dim str1 As String 
Dim str2 As String 

str1 = "dhfjd9999999dfda" 
str2 = "ddsss999dfdfsfd" 


MsgBox str1 Like "*9999999*" 
MsgBox str2 Like "*9999999*" 

End Sub