Determine which userform is loaded

R

royUK

Here's a User Defined Function that I found somewhere, can't remember
where


Code:
--------------------

Check whether a userform is loaded
Option Explicit

Function FormIsLoaded(FormName As String) As Boolean
Dim oFrm As Object
FormIsLoaded = False

For Each oFrm In UserForms
If oFrm.Name = FormName Then FormIsLoaded = True
Next oFrm

End Function
 

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

Top