The following VBA code stops at Me.Show. From my tests, it seems that Me.Show stops all code execution, even if the code is inside the UserForm.
Me.Show
I don't really know whats going into your mind because there are a wide variety of code for what your are asking but i hope that this can help
Private Sub cmdSwitch_Click() UserForm1.Hide UserForm2.Show
End Sub