Hem / Tips & tricks
Public Sub ClearAllControls(frmForm As Form)Dim ctlControl As Object On Error Resume Next For Each ctlControl In frmForm.Controls ctlControl.Text = "" ctlControl.ListIndex = -1 DoEvents Next ctlControlEnd Sub