function isInteger(para)
on error resume next
dim str
dim l
if isNUll(para) then
isInteger=false
exit function
End if
str=cstr(para)
if trim(str)="" then
isInteger=false
exit function
End if
l=len(str)
for i=
if mid(str
isInteger=false
exit function
End if
next
isInteger=true
if err
End function
From:http://tw.wingwit.com/Article/program/net/201311/14345.html