Loop Through UserForm Controls Dynamically - Excel VBA Is Fun

preview_player
Показать описание

In this video, Dan was asked how to loop through 200 checkboxes and to affect the appropriate textboxes based on whether they were checked or not. Here's how we did just that. Check it out!

Fantastic Developer Tools:
Рекомендации по теме
Комментарии
Автор

Hey Dan.. thanks for the video on looping through many user form controls. The advice on using Me.Controls("ControlName" & CounterVariable) to loop through them incrementally with a counter variable is great advice and can be put to good use in many ways. Nice tip.. keep them coming. Thanks and Thumbs up!

wayneedmondson
Автор

Very nice indeed. Thank you for the video. I have a question? if there are 2 userforms how to change this code?

hazhirk
Автор

Very nice indeed. Thank you for the video. Just a question. How do you loop though a sheet control (command button). I.e. if i have 100 active command buttons in sheet1 and only want certain buttons to change colour based on a set value. Really will appreciate the help

francoispetrus
Автор

Very helpful! Those 3 haters (3dislikes) above are just noob!!

arielzabatecuizon
Автор

Lots of controls on that form... wow. Good job explaining that. LOL.

krn
visit shbcf.ru