Is there a way to make a code run when a form minimize? I mean when the user presses the minimize button on a form.
Printable View
Is there a way to make a code run when a form minimize? I mean when the user presses the minimize button on a form.
Sure, in your Form_Resize event, you can test it
Code:If Me.WindowState = vbMinimized Then
..... run the code
End If