很简单:
用mid函数
a="e.g.abcdefghijklmn"
b=mid(a,8,6)
d是第8个字符,从d后取6个,就是mid(a,8,6),再有,你说取6个,应该是efghi,不是defghij(这是7个字符了)
dim str
str="e.g.abcdefghijklmn"
start_i=instr(str,"d")
newstr=mid(str,start_i,6)
dim a
dim b
a="e.g.khfkjhkjhkdjadshfajk"
b=mid(a,17,6)或b=right(a,6)
a="e.g.abcdefghijklmn"
结果=mid(a,9,6)