I am changing the list (inserting a cell into the named range) through a macro. I should mention, the named range is on a different worksheet (in the same work book).
In any case, the combobox doesn't update. You can try it yourself.
Ah - I didn't ask. Is the combobox on a userform or embedded on a worksheet? From your previous response, I imply the latter. My first response referred to the former. Could you confirm? Rob
I just checked the combobox control type entered using the "control toolbox" toolbar. It, also, automatically updates when the range changes. Rob
The combobox will update if the named range is on the same sheet, but there seems to be a bug that doesn't allow it to update when it is on a seperate sheet.
It does however update upon reloading the workbook.
I reckon this has got to be to do with how the range updates itself when you insert a row
It may be a better idea to iterate thru the list and use the additem method ie
Combobox1.clear
for each c in range("NamedRange"
combobox1.additem(c.text)
next
This really doesn't take very long
The other way round is possibly to use a "Dynamic" range name ie goto insert > Names
Put a name in and then where you would normally put a range ref, enter:
=OFFSET(Sheetname!$A$1,0,0,COUNTA(Sheetname!$A:$A)-1,1)
Where your list is in column A, starting in A1
This will update as you enter data at the bottom of the list and you will therefore not have to insert a row
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.