最佳答案:建立 text1 command1 在按钮下写代码if val(text1)<0 thenmsgbox "您输入的为负数!"elsemsgbox "您输入的为正数"