drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and thanks in advance!
If I want to check how many UseForms I have in my VBA, I can Use:
But How can I check if the UserForms in my VBA are UserForms with CheckBoxes, or UserForms with Buttons etc ?
or probably How can I check if my Userform is Empty with nothing on it yet
If I want to check how many UseForms I have in my VBA, I can Use:
Code:
Sub mToListUFs()
Dim Obj As Object
Dim X As Integer
For Each Obj In ThisWorkbook.VBProject.VBComponents
If Obj.Type = 3 Then
Debug.Print Obj.Name
X = X + 1
End If
Next Obj
Debug.Print X
End Sub
But How can I check if the UserForms in my VBA are UserForms with CheckBoxes, or UserForms with Buttons etc ?
or probably How can I check if my Userform is Empty with nothing on it yet