I have a worksheet that contains a ComboBox (named "cboFacility"
. Based upon the property dialog for this ComboBox, the Input Range is $N$2:$N$105. When a user adds rows of information to this range, I'd like the macro to programatically update the Input Range.
Through recording a macro on a test sheet, I see that...
ActiveSheet.DropDown.Add(239.25, 13.5, 144.75, 24.75).Select
...creates and selects a Combobox and...
Selection.ListFillRange = "$N$2:$N$106"
...sets the Input Range.
ActiveSheet.Shapes("cboFacility"
.Select
...selects an existing ComboBox. When I try to modify and apply this recorded code to my real macro operation, it tells me that the object does not support this property. Furthermore, when I look in the object browser, I cannot find DropDown even listed as an object. Any clues on how to programmatically update the .ListFillRange?
Thanks,
Ray <><
Through recording a macro on a test sheet, I see that...
ActiveSheet.DropDown.Add(239.25, 13.5, 144.75, 24.75).Select
...creates and selects a Combobox and...
Selection.ListFillRange = "$N$2:$N$106"
...sets the Input Range.
ActiveSheet.Shapes("cboFacility"
...selects an existing ComboBox. When I try to modify and apply this recorded code to my real macro operation, it tells me that the object does not support this property. Furthermore, when I look in the object browser, I cannot find DropDown even listed as an object. Any clues on how to programmatically update the .ListFillRange?
Thanks,
Ray <><