Formatting User Form Controls
问题 I am trying to format controls on each of my User Forms similarly, but what I have formats all controls on a User Form instead of just the labels or just the textboxes. Here is what I have: Private Sub UserForm_Initialize() FormatUserForms UFNewRequest End Sub Sub FormatUserForms(UF As UserForm) UF.BackColor = RGB(51, 51, 102) For Each Label In UF.Controls Label.BackColor = RGB(51, 51, 102) Label.ForeColor = RGB(247, 247, 247) Next For Each Button In UF.Controls Button.BackColor = RGB(247,