Hi, I'm very new to VBA and was wondering if somebody could help me with the following
I have a user form with multiple combo boxes and text boxes.
One of these combo boxes has three options, all entered via VBA
If the option of Hotel Supplies is selected (and only this option), I want to ensure that a different combo box has one of its options selected.
I would like a message box to appear at time of selection not at the end when the command button for Save is clicked (I have a check for empty fields for everything else at this point)
Is this possible and if so, how do I go about creating the code for this?
Thanking you in advance for reading and hopefully replying
I have a user form with multiple combo boxes and text boxes.
One of these combo boxes has three options, all entered via VBA
Private Sub ComboBoxCategory_DropButt*******()
'Populate control.
Me.ComboBoxCategory.AddItem "Beverage"
Me.ComboBoxCategory.AddItem "Food"
Me.ComboBoxCategory.AddItem "Hotel Supplies"
End Sub
If the option of Hotel Supplies is selected (and only this option), I want to ensure that a different combo box has one of its options selected.
I would like a message box to appear at time of selection not at the end when the command button for Save is clicked (I have a check for empty fields for everything else at this point)
Is this possible and if so, how do I go about creating the code for this?
Thanking you in advance for reading and hopefully replying