I have a UserForm with a cancel button.
Sub DialogTest() MyForm.Show End Sub Private Sub CancelButton_Click() Unload Me End End Sub I also tried MyForm.Hide, End by itself, cmdExit_Click.
The cancel button does not close the dialog nor does it cause the debugger to come up.

