Close Active Form

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

Is there a way to check if a particular form is open and
if so close the form?

For example if I had Form1 open

If Form1.Visible = True Then
Form1.Close
End if

Thanks!

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top