R
RB Smissaert
On a userform I have a combobox with a number of integer numbers that are
years.
On DropButtonClick I would like to have a certain item (the current year)
selected and
have that item at about the middle (height-wise) of the combobox.
The combobox is populated like this:
For i = 1 To 111
arrYears(i) = Year(Date) - (101 - i)
Next i
With ComboBox1
.List = arrYears
.ListIndex = 100
.ListWidth = 48
.ColumnWidths = 48
End With
How could I do this without using SendKeys or the Windows API?
RBS
years.
On DropButtonClick I would like to have a certain item (the current year)
selected and
have that item at about the middle (height-wise) of the combobox.
The combobox is populated like this:
For i = 1 To 111
arrYears(i) = Year(Date) - (101 - i)
Next i
With ComboBox1
.List = arrYears
.ListIndex = 100
.ListWidth = 48
.ColumnWidths = 48
End With
How could I do this without using SendKeys or the Windows API?
RBS