【发布时间】:2013-09-21 17:06:03
【问题描述】:
在输入框中输入字母时出现运行时错误
Dim amount As String
amount = InputBox("Enter the amount of people you want to participtate", "System Message")
If amount < 0 Or Not (IsNumeric(amount)) Then
MsgBox("Please enter positive number of people", vbExclamation, "System Message")
End If
【问题讨论】:
-
If amount < 0语句出错了.. -
请将 Option Strict On 放在代码文件的顶部或在项目属性中打开它。