Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing all windows in an mdi form

Status
Not open for further replies.

SamNeo

Technical User
Jun 26, 2000
21
IN
I want to close all active windows in a mdiform with one button click in the menu is it possibel to do.
 
Code below close all child form, except MDIForm named frmMain :


Dim frm As Form

For Each frm In Forms
If UCase$(frm.Name) <> &quot;FRMMAIN&quot; Then
Unload frm
Set frm = Nothing
End If
Next
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top