Michael Keith
asked on
combobox list - fill with data across columns and remove blanks
Attached is the spreadsheet that I am working with. I want grab the titles in row 15 across different columns on the outstanding debt worksheet and populate a combobox to create a selection list and remove any blanks. The combobox is on the snapshot page. I have tried to figure this out with no luck. hoping to get some ideas on how to best approach this.
Sampledata.xlsm
Sampledata.xlsm
Hi this might help also...
References the combobox, clears existing entries, cycles through all the cells in row 15 of Outstanding Debt, then adds them to the combobox list. Note that Outstanding Debt has a space on the end of the sheet name...
Terry
References the combobox, clears existing entries, cycles through all the cells in row 15 of Outstanding Debt, then adds them to the combobox list. Note that Outstanding Debt has a space on the end of the sheet name...
Terry
Sub getTitles()
Dim c As Range
Dim oSheet As Excel.Worksheet
Dim oCmbBox As MSForms.ComboBox
Set oCmbBox = ActiveWorkbook.Sheets("Snapshot").ComboBox1
oCmbBox.Clear
For Each c In ActiveWorkbook.Sheets("Outstanding Debt ").UsedRange.Rows(15).Cells
If c.Value = "" Then GoTo Skip
oCmbBox.AddItem c.Value
Skip:
Next c
Debug.Print titles
End Sub
ASKER
Terry -
I have been playing around with what you provided and it works except when I select something from the dropdown it wants to clearout and does not keep the selection. Can you provide any help with this or tell me what I am doing wrong.
Sampledata.xlsm
I have been playing around with what you provided and it works except when I select something from the dropdown it wants to clearout and does not keep the selection. Can you provide any help with this or tell me what I am doing wrong.
Sampledata.xlsm
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I will take a look at this today and let you know how it goes or if I have any additional questions. Thanks again for your help on this.
Flyster
Sampledata.xlsm