For Each ctl in me.controls
Select Case LCase$(Typename(ctl))
Case "textbox"
ctl.Text = vbnullstring
Case "combobox"
ctl.Listindex = -1
Case "label"
ctl.Caption = vbnullstring
End Select
Next ctl
Sub MacroClearTextBoxes()
With ActiveUserForm
For Each ctl In Me.Controls
Select Case LCase$(TypeName(ctl))
Case "textbox"
ctl.Text = vbNullString
Case "combobox"
ctl.ListIndex = -1
End Select
Next ctl
End With
End Sub
Sub MacroClearTextBoxes(uf as Userform)
Dim ctl as MSForms.Control
For Each ctl In uf.Controls
Select Case LCase$(TypeName(ctl))
Case "textbox"
ctl.Text = vbNullString
Case "combobox"
ctl.ListIndex = -1
End Select
Next ctl
End Sub