I can't figure out why this line is throwing the "Error 1004: Application Defined or Object Defined error"? Can someone help?
The object "CombQTY" is a combo box in a userform "MASTER". I am trying to populate the drop down menu of this combo box with the range "QTY_range" (size is 31 rows of numbers in a column = 0,1,2,3,..30).
I have tried swapping the "Userform" with "MASTER" and vice versa.
Private Sub Userform_Initialize() MASTER.CombQTY.List = Worksheets("RANGES").Range("QTY_range").Value End Sub I can't understand why its throwing that error because I don't see any problem with this code. Please help
CombQTYis a control on that userform, the only correct qualifier to use isMe. Otherwise you are assigning theListproperty of theCombQTYcombobox on the default instance of the form, ....which may or may not be that instance. UnqualifiedWorksheetsis implicitly referring to whatever theActiveWorkbookis; a properWorkbookobject qualifier would be needed here.