Loop Msgbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i have a yes no msg box that displays the msg "did the quote print?" on
pressing yes it performs a number of actions. When i press no i want it to
loop back to the begining of the function.

Anyone have any ideas??
 
Try something like this:

Public fMyFunction()
Dim intRestart as integer
intRestart = vbNo
Do while intRestart = vbNo
'Enter your function statements here
'.
'.
intRestart = Msgbox ("Did the quote Print?", vbQuestion + vbYesNo,
"Title")
Loop
End Function
 
Back
Top