Reset 108 text boxes

  • Thread starter Thread starter Tempy
  • Start date Start date
T

Tempy

Hi all,

I need to reset 108 text boxes, is there a way to do them all at once
without unloading the form ?

Tempy
 
Dim ctl as Control
for each ctl in Userform1.controls
if typeof ctl is MsForms.TextBox then
ctl.Value = ""
end if
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top