如果想一次点按钮就试 3 次,就可以这样写:
Option Explicit
Private Sub InputNum_Click()
Dim InputText As String, i As Integer
For i = 1 To 3
InputText = InputBox("请输入要显示的内容," & vbCrLf & "只能输入3次")
Print InputText;
'如果要退出,写 Exit For 就可以了
Next
End Sub
[此贴子已经被作者于2006-2-10 16:49:49编辑过]