for each frm as winform.form in Forms
if frm.Name <> "ddd" then
frm.Close
end if
next
forms("ddd").Open()