NdNoviceHlp
Well-known Member
- Joined
- Nov 9, 2002
- Messages
- 3,629
I'm having some trouble understanding what's going on with this error trap
<pre>Sub test()
On Error GoTo correct
userform1.Show
exit sub
correct: MsgBox "U messed up": Unload userform1: userform2.Show
End Sub</pre>
This code is just to illustrate an example. After having an error in "test", when I use a command button on userform2 to unload userform2 it takes me back to this error trap...I don't get it?
editx2: code correction
<pre>Sub test()
On Error GoTo correct
userform1.Show
exit sub
correct: MsgBox "U messed up": Unload userform1: userform2.Show
End Sub</pre>
This code is just to illustrate an example. After having an error in "test", when I use a command button on userform2 to unload userform2 it takes me back to this error trap...I don't get it?
editx2: code correction