I have code where on the first try it works fine. The code ends with
710 Unload UserForm1
730 Unload UserForm2
On the first round, these trigger:
Private Sub UserForm_QueryClose(Cancel As Integer, CloseMode As Integer)
On the second try, my code starts to perfrom
Private Sub UserForm_Initialize()
when it reaches Unload UserForm1
.
Why is this? This causes an expected error, because Unload is supposed to end the form, not initialize it.