function array_no(cxstr
if len(cxstr
if not IsNumeric(cxstr
array_no = "對不起
Exit Function
end if
else
array_no = "對不起
Exit Function
end if
if isarray(cxstr
array_no = "對不起
Exit Function
end if
if cxstr
array_no = "沒有數據"
Exit Function
end if
ss = split(cxstr
cxs=cxstr
sss=cxs
for m =
cc = cxstr
if instr(sss
sss = sss&ss(m)&cxstr
end if
next
array_no = right(sss
array_no = left(array_no
if cxstr
cx_sp = split(array_no
if cxstr
array_no = cx_sp(ubound(cx_sp))
else
array_no = cx_sp(cxstr
end if
end if
end function%>
From:http://tw.wingwit.com/Article/program/net/201311/14460.html