B
bhartman36
Hi, Everyone.
My macro contains the following code:
Dim y as Integer
ComboBox3.AddItem "January"
ComboBox3.AddItem "February"
ComboBox3.AddItem "March"
ComboBox3.AddItem "April"
ComboBox3.AddItem "May"
ComboBox3.AddItem "June"
ComboBox3.AddItem "July"
ComboBox3.AddItem "August"
ComboBox3.AddItem "September"
ComboBox3.AddItem "October"
ComboBox3.AddItem "November"
ComboBox3.AddItem "December"
ComboBox3.Visible = True
If ComboBox3.Value = "January" Or "March" Or "May" Or "July" Or
"August" Or "October" Or "December" Then
For y = 1 To 30
ComboBox4.AddItem y
Next
Else
For y = 1 To 31
ComboBox4.AddItem y
Next
End If
I'm getting a "Type Mismatch" error with this code. Can anyone set me
straight?
Thanks for your help!
My macro contains the following code:
Dim y as Integer
ComboBox3.AddItem "January"
ComboBox3.AddItem "February"
ComboBox3.AddItem "March"
ComboBox3.AddItem "April"
ComboBox3.AddItem "May"
ComboBox3.AddItem "June"
ComboBox3.AddItem "July"
ComboBox3.AddItem "August"
ComboBox3.AddItem "September"
ComboBox3.AddItem "October"
ComboBox3.AddItem "November"
ComboBox3.AddItem "December"
ComboBox3.Visible = True
If ComboBox3.Value = "January" Or "March" Or "May" Or "July" Or
"August" Or "October" Or "December" Then
For y = 1 To 30
ComboBox4.AddItem y
Next
Else
For y = 1 To 31
ComboBox4.AddItem y
Next
End If
I'm getting a "Type Mismatch" error with this code. Can anyone set me
straight?
Thanks for your help!