ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Reset 108 text boxes (https://www.excelbanter.com/excel-programming/335869-reset-108-text-boxes.html)

Tempy

Reset 108 text boxes
 
Hi all,

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

Tempy

*** Sent via Developersdex http://www.developersdex.com ***

Tom Ogilvy

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

--
Regards,
Tom Ogilvy

"Tempy" wrote in message
...
Hi all,

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

Tempy

*** Sent via Developersdex http://www.developersdex.com ***




Tempy

Reset 108 text boxes
 
Thanks so much Tom, great weekend

Tempy

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 05:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com