i've create the following function to mount an array with a list of products
Public Function MontArrProdutos()
Dim shtBD_PROD As Worksheet
Set shtBD_PROD = Sheets("BD_PROD")
lastrow = FindLastRow(shtBD_PROD, "B")
arrProd = shtBD_PROD.Range("A2:B" & lastrow).Value
End Function
After that I made a Little small modification to your code
Sub testComboObject()
Dim cb As DropDown, cb1 As MSForms.ComboBox, sh As Worksheet, i As Long
MontArrProdutos ' CALL THE FUNCTION TO MOUNT THE ARRAY OF PRODUCTS
Set sh = ActiveSheet
i = 1
'In case of a ActiveX ComboBox:
Set cb1 = sh.OLEObjects("ComboBox" & i).Object
'cb1.Clear commented this in order to make minor changes to code
'cb1.AddItem "Test1" commented this in order to make minor changes to code
'cb1.ListIndex = 0 commented this in order to make minor changes to code
cbl.List= arrProd ' inserted this line only to populate the combobox1
end sub
all of this is inside a worksheet, i'm not using any form in project
PLN_ESTOQUE? Is it aUser Formcontrol?Worksheetobject. If so, this object does not have any controls property... If I am right, what kind of control is theComboBoxin discussion? A sheet Form type or an Activex ComboBox?