I have a sheet where the user selects a particular month, through a combobox.
When he selects "January", then a Msgbox ("cold") should appear. And so on.
For some reason, the below code does not work:
what is wrong here ?
When he selects "January", then a Msgbox ("cold") should appear. And so on.
For some reason, the below code does not work:
VBA Code:
Private Sub monthCombo_Click()
Dim montH As String
Select Case montH
Case January
MsgBox ("cold")
'and so on
Case July
MsgBox ("hot")
'and so on until December
End Select
End Sub
what is wrong here ?