Wouldn't a named dynamic range work? If TBL is a ordinary named range, you can make it dynamic.
Aladin
Thanks Aladin but how do we make this Dynamic? I've tried several things but no success.
Greatful
Michele
Activate the first cell of your TBL list.Lets say the first cell is A2 on sheet, say, X.
Activate Insert|Name|Define.
(1) Select the name TBL from the list(I'm assuming this to already exist; if not, see below).
(2) Enter as the value of Refers to:
=OFFSET(X!$A$2,0,0,COUNTA($A:$A),1)
This formula requires that you have nothing but your TBL items.
If you do not have TBL in the list, just enter TBL as value of Names in the workbook.
You can use this name anywhere you want,I believe even in a macro or other VBA code.
Aladin
Aladin,
Thanks again but it doesn't work. There are several problems:
1)It defines (and displays in the combobox) only column A and I have Columns A & B in my table.
2)It doesn't allow any selecting from the ComboBox. The box opens up but selections can't be made - it's frozen!
3)The combobox doesn't display all the items.
I'm open for more suggestions if you have any.
Thanks,
Michele
Aladin,
I have resolved the problem. After adding an entry to the table - the integrity of the name TBL is kept - but I figured that the ComboBox doesn't know the new dimensions. So I refresh the CombBox's info by issuing:
ComboBox2.ListFillRange = "Tbl"
Then, when the Comobox is accessed, it displays every item & both columns, every item is in sequence (I sort the table after adding to it) and selections can be made. I do the same when deleting or editing an item.
(Sorry if I never mentioned this was in VB Procedures).
Many thanks for your help.
Michele
Aladin,
Thanks again but it doesn't work. There are several problems:
1)It defines (and displays in the combobox) only column A and I have Columns A & B in my table.
2)It doesn't allow any selecting from the ComboBox. The box opens up but selections can't be made - it's frozen!
3)The combobox doesn't display all the items.
I'm open for more suggestions if you have any.
Thanks,
Michele