Developer technologies | Visual Basic for Applications
An implementation of Visual Basic that is built into Microsoft products.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am very new with VBA... How should a add items to a combo box using codes?
Depend of where you want to add this ActiveX object. On sheet
or in VBA form as control
That is collection so 4 example in form as a loop from range:
Private Sub UserForm_Initialize()
Dim x As Integer
ComboBox1.Style = fmStyleDropDownList
For x = 1 To 7
ComboBox1.AddItem Cells(x, "a")
Next
ComboBox1.ListIndex = 0
End Sub