Hem / Tips & tricks
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) If UnloadMode = vbFormControlMenu Then Cancel = True Me.WindowState = vbMinimized End IfEnd Sub