I have been smashing my head through the computer screen trying to solve this but every solution I've found led to nowhere.
I am trying to create a Userform and I want to populate a Combobox with data from the Excel sheet it's connected to. The Sheet is titled as 'PrinterModels (Printer Models)' in the VBA editor, the box is titled as cmbModel. When I populate the box with RowSource in it's properties it populates but when items are selected they disappear from the list when another item is selected. What I need is a way to populate the Box in code and if it acts the same, I need a way to repoplulate the box next time it is messed with. I've posted my latest attempt below which gives error 1004
Private Sub UserForm_Initialize()
'cmbModel.List = PrinterModels.Range("A2:A").Value
ModelLast = PrinterModels.Cells(Rows.Count, 1).End(x1Up).Row
For i = 1 To ModelLast
Value = PrinterModels.Cells(i, 1).Value
cmbModel.AddItem Value
Next i
End Sub