If IsCtrExist("UserForm1", "ComboBox1") Then MsgBox "¦s¦b" Else MsgBox "¤£¦s¦b"
Public Function IsCtrExist(ByVal nameUF As String, ByVal nameC As String) As Boolean
Dim ¦s¦b1 As Boolean
Dim ¦s¦b2 As Boolean
Dim N%, i%
For i = 1 To UserForms.Count
If UserForms.Item(i - 1).name = nameUF Then ¦s¦b1 = True: N = i - 1
Next i
If Not ¦s¦b1 Then GoTo 101
For Each c In UserForms.Item(N).Controls
If c.name = nameC Then ¦s¦b2 = True
Next
101:
If ¦s¦b2 Then IsCtrExist = True Else IsCtrExist = False
End Function