I have the following code used to check if there is a value displayed in TextBoxes and ComboBoxes. The code is fired via ComboBox change event.
The issue is that I have in excess of 50 such objects on the UserForm. Is there way to apply the code to all the objects without having to code for them individually?
Thank you in advance.
VBA Code:
With Me.tbxFileOpenDate
If .Value = vbNullString Then
.BackColor = RGB(255, 242, 204)
Else
.BackColor = vbWhite
End If
End With
The issue is that I have in excess of 50 such objects on the UserForm. Is there way to apply the code to all the objects without having to code for them individually?
Thank you in advance.