Hi,
Really hope someone can help with this please.
I am creating a Userform with dozens of ComboBoxes to aid data input of job booking. There are 4 types of job, and each job turns the relevant ComboBox a particular colour, like so:
If ComboBox6.Value = "LFT" Then
ComboBox6.BackColor = RGB(255, 201, 14)
Else
End If
If ComboBox6.Value = "EXT" Then
ComboBox6.BackColor = RGB(163, 73, 164)
Else
End If
It would be a great timesaver if I didn't have to copy and paste, then change the code, for every ComboBox. Is there a way I could do an If statement that would apply to every ComboBox within my Userform. Sort of:
If any ComboBox.value within Userform7 = "" Then...
Really hope someone can help with this please.
I am creating a Userform with dozens of ComboBoxes to aid data input of job booking. There are 4 types of job, and each job turns the relevant ComboBox a particular colour, like so:
If ComboBox6.Value = "LFT" Then
ComboBox6.BackColor = RGB(255, 201, 14)
Else
End If
If ComboBox6.Value = "EXT" Then
ComboBox6.BackColor = RGB(163, 73, 164)
Else
End If
It would be a great timesaver if I didn't have to copy and paste, then change the code, for every ComboBox. Is there a way I could do an If statement that would apply to every ComboBox within my Userform. Sort of:
If any ComboBox.value within Userform7 = "" Then...