If x - Fix(x) <> 0 ThenMsgBox "不是整数!"
end if
使用道具 举报
上个附件
来练一练~~~
Sub aa()Dim i#, j#i = InputBox("请输入数字")If i = Int(i) Then MsgBox "整数"Else MsgBox "不是整数"End IfEnd Sub
学习。。。
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )
GMT+8, 2024-5-14 20:02 , Processed in 0.384351 second(s), 6 queries , Gzip On, Yac On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.