S. Warmelink
0
Q:

vba check if userform object exists

Public Function WidgetExists(ByVal Name As String) As Boolean
    On Error Resume Next
        WidgetExists = Not Me.Controls(Name) Is Nothing
    On Error GoTo 0
End Function

Sub Test()
	MsgBox WidgetExists("Textbox" & 1)
End Sub
0

New to Communities?

Join the community