叮当猫咪
可以,输入代码设置。代码:Sub 示例_1_18()Dim bssString, yczChar, wzbssString ="ABpAApCDPBBP"yczChar = "P"MsgBox "bssString = "" ABpAApCDPBBP """ & Chr(10) & _"yczChar= ""P"" 时: " & Chr(10) & Chr(10) & _"InStr(4, bssString, yczChar, 1) 返回值为 " & _InStr(4, bssString, yczChar, 1)wz = Instr(1, bssString, yczChar, 0)wz = Instr(bssString,yczChar) ' 返回 9。wz = Instr(1, bssString, "W") ' 返回 0。