I want to populate a combo box from a SQL table. I have an immediate problem in that when I create the combo box I cannot refer to it. It takes a default name of dropdown1, but when I attempt to reference this in VBA using:
I get an error:
Run time error 438
Object doesn't support this property or method.
I also notice that if I rename the object by right-clicking it then editing the name that appears in the Excel name window, Excel still calls the control 'dropdown1'.
Code:
With Sheets("Sheet2").dropdown1
I get an error:
Run time error 438
Object doesn't support this property or method.
I also notice that if I rename the object by right-clicking it then editing the name that appears in the Excel name window, Excel still calls the control 'dropdown1'.