RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
Hi there,
I have a few dozen textboxes on a userform, might add a few, might take a few away. Looking to change the backcolor of them all. My first question is: are textboxes counted as controls? So I'm trying to write using the following code - any ideas?
I have a few dozen textboxes on a userform, might add a few, might take a few away. Looking to change the backcolor of them all. My first question is: are textboxes counted as controls? So I'm trying to write using the following code - any ideas?
Code:
Dim ctl As MSForms.Control
For Each ctl In Me.Controls
Me.Controls.BackColor = RGB(211, 211, 211)
'clearly not working here...
Next ctl