'Combobox has no value in if statement

I'm trying to display a Msgbox when the user doesn't enter any value in Combobox.

Private Sub CommandButton1_Click()
MonthCases (ComboBox1.Value)
Unload Me
End Sub

MonthCases are in a separate module MonthCases(X As Integer) with multiple If statements for x.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source