poleary2000
Active Member
- Joined
- Apr 1, 2002
- Messages
- 354
I have the following code:
On Error GoTo Canceled
NewWONumber = InputBox("Enter the new work order number", "Work Order Number")
On Error GoTo Canceled
NewClient = InputBox("Enter the new client / description", "Description")
On Error GoTo Canceled
NewLocation = InputBox("Enter the new location", "Location")
How can I make it so if the user clicks Cancel on the InputBox, the sub is ended?
On Error GoTo Canceled
NewWONumber = InputBox("Enter the new work order number", "Work Order Number")
On Error GoTo Canceled
NewClient = InputBox("Enter the new client / description", "Description")
On Error GoTo Canceled
NewLocation = InputBox("Enter the new location", "Location")
How can I make it so if the user clicks Cancel on the InputBox, the sub is ended?