This might be a tough one. Does anyone know of a way to close a bunch of modal forms without letting them execute any more code? For example, I want to close forms 2 and 3. Form3 is called modally from a command button on form2 (see code below). How do I kill both forms but prevent the msgboxes from running?
Private Sub Command1_Click()
Dim frm As Form3
Set frm = New Form3
frm.Show vbModal
Set frm = Nothing
MsgBox "i told you so"
MsgBox "did not"
MsgBox "did too"
End Sub
Ideas, examples, suggestions appreciated.
Private Sub Command1_Click()
Dim frm As Form3
Set frm = New Form3
frm.Show vbModal
Set frm = Nothing
MsgBox "i told you so"
MsgBox "did not"
MsgBox "did too"
End Sub
Ideas, examples, suggestions appreciated.