I have a user form with multiple control types (TextBox, ComboBox, Button, Check box, Label). I wanna have a piece of code that checks the value in each TextBox and ComboBox and changes the color of the box to red if there is no value.
The problem using "Controls" collection is that some controls do not have a value property i.e. Label. So I wanna write a piece of code where there will be no need to define the type of control inside the body of the loop as the type is already specified at the declaration level.
Many thanks in advance for your help