e.g

if Form1 is open then Unload Form1
if Form7 is open then Unload Form7

etc, any ideas how?