I want loop to stop if cancel is clicked and eturn to program. Here is my code. Stumped - sorry if it's basic.
Code:
Do while not EOF
.
.
.
.
Printer.EndDoc
If Label9 = 5 Then ' use 20 for production
Label9 = 0
intpress = MsgBox("Print NEXT batch? (NO will cancel printing)?", vbQuestion + vbOKCancel, "Continue?")
If intpress = vbCancel Then
End ' Think problem here!
Else
End If
End If
Loop
Close ifile
End Sub
Comment