Originally Posted by canceriens
there is another short way to avoid adding an extra item in the ComboBox
Do not add empty string in ComboBox
Private Sub Form_Load()
With cboMonth
.AddItem "January"
.AddItem "February"
.AddItem "March"
.AddItem "April"
.AddItem "May"
.AddItem "June"
.AddItem "July"
.AddItem "August"
.AddItem "September"
.AddItem "October"
.AddItem "November"
.AddItem "December"
End With
End Sub
'Set the property of ListIndex to -1
Private Sub Command1_Click()
cboMonth.ListIndex = -1
MSFlexgrid1.Clear
End Sub
this is the simple way to do your work no need to add empty string nd its done