malibuxdreams
2007-12-15 23:29:54 UTC
heres the code:
Option Explicit
Private Sub cmdAsk_Click()
Dim MyValue, Response
Dim UserInput
Dim i As Integer
Do Until i = vbNo
UserInput = InputBox("Ask A Question:", "I know the answer to everything!")
If UserInput = "" Then
MsgBox "You did not ask a question."
Else
Randomize
MyValue = Int((6 * Rnd) + 1)
MsgBox MyValue
Response = MsgBox("Ask another question? ", vbYesNo)
Me.Caption = i
Loop
End If
End Sub