Hello, I have an Excel document that contains a Combo Box which contains numerous items. I used the Form Control.
There are two items on the list whereas if the user clicks on it, a message box pops up that this an invalid selection, and that they need to choose from the sub-series contained under that item instead.
My problem is that when the user closes the popup message, the item I don't want them choosing gets populated in the Combo Box then they have to delete it and then choose one of the other items. I would like it that when the user closes the popup message, that the combo box shows nothing and the user can choose from the list.
I need help with this item and just can't sort it out. I'm not the best at VBA. The current VBA looks like this:
Private Sub ComboBox8_Change()
If ComboBox8.Value = "23.0 - XXXXXXXX" Then MsgBox "Not a valid selection - please choose from 23 sub-series below"
If ComboBox8.Value = "25.0 - XXXXXXXXXXXXXXXX" Then MsgBox "Not a valid selection - please choose from 25 sub-series below"
End Sub
Thank you- CMK
There are two items on the list whereas if the user clicks on it, a message box pops up that this an invalid selection, and that they need to choose from the sub-series contained under that item instead.
My problem is that when the user closes the popup message, the item I don't want them choosing gets populated in the Combo Box then they have to delete it and then choose one of the other items. I would like it that when the user closes the popup message, that the combo box shows nothing and the user can choose from the list.
I need help with this item and just can't sort it out. I'm not the best at VBA. The current VBA looks like this:
Private Sub ComboBox8_Change()
If ComboBox8.Value = "23.0 - XXXXXXXX" Then MsgBox "Not a valid selection - please choose from 23 sub-series below"
If ComboBox8.Value = "25.0 - XXXXXXXXXXXXXXXX" Then MsgBox "Not a valid selection - please choose from 25 sub-series below"
End Sub
Thank you- CMK