View Full Version : Solved: Determine if Userform is Loaded
abhiker
07-01-2009, 02:24 PM
Is there a VBA command that allows you to check to see if a UserForm is already diplayed or loaded? Thanks in advance for any help on this.
Bob Phillips
07-01-2009, 03:04 PM
Loaded forms are all contained in userforms collection, so just check that.
abhiker
07-02-2009, 06:55 AM
This is my solution. Thanks for the advice.
Dim frm As Object
For Each frm In UserForms
MsgBox frm.Name
Next frm
mdmackillop
07-02-2009, 09:55 AM
To avoid repeated messages
Dim frm As Object
Dim msg As String
For Each frm In UserForms
msg = msg & frm.name & vbCr
Next frm
MsgBox msg
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.