I want to populate combobox with the first 3 collums from table1 and the whole table from table2. But I also want my workbook to be dynamic, so I can move the tables around and not affect the userforms comboboxes.
So far I have populatet the comboboxes with this code:
With tables I have tried populate the comboboxes in a lot of ways.
Like this
In this way I can only add a single cell and it erases previous populatet data.
How can I populate data to combobox and not delete previous combo-data and at the same time make my references dynamic.?
So far I have populatet the comboboxes with this code:
Code:
With combobox1
.AddItem Sheets("sheet1").Range("b74").Value
.AddItem Sheets("sheet1").Range("b75").Value
.AddItem Sheets("sheet1").Range("b76").Value
.AddItem Sheets("sheet1").Range("b77").Value
End With
With tables I have tried populate the comboboxes in a lot of ways.
Like this
Code:
com_2_1.RowSource = Range("table1").Cells(3#).Address
In this way I can only add a single cell and it erases previous populatet data.
How can I populate data to combobox and not delete previous combo-data and at the same time make my references dynamic.?