先用_分隔,函数用split(strTemp,"_") 然后用chr()转换回去,针对你的代码,可以如下写: dim ThisstrTemp,ThisAr,Vstr ThisstrTemp=strToAsc(strValue) ThisAr=split(ThisstrTemp,"_") for i=0 to Ubound(ThisAr) if IsNumeric(ThisAr(i)) thenVstr=Vstr&chr(ThisAr(i)) end ifnext