Rob Gane
2011-09-21 02:21:29 UTC
If txtUserLength.Text = "" And txtUserWidth.Text = "" Then
MsgBox("Please enter both Width and Length")
Call Clear()
ElseIf txtUserLength.Text = "" Then
MsgBox("Please enter a Length")
Call Clear()
ElseIf txtUserWidth.Text = "" Then
MsgBox("Please enter a Width")
Call Clear()
End If
Once a message box has been closed, the program continues and then there are problems (as the text box was empty) and the program stops. Obviously I have the If statements so that the user has to enter values into the text boxes. How can I make the program (or the code for the button) restart so that the user can have another chance to enter values without having to manually restart the program?
Thanks.