如下例子Dim a As Stringa = "Hello,this is an example" '如果你要截取o 和 p之间的字符串Print Mid(a, InStr(a, "o"), InStr(a, "p") - InStr(a, "o"))