ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Combobox rowsource from non-contiguous cells (https://www.excelbanter.com/excel-programming/426719-combobox-rowsource-non-contiguous-cells.html)

Gig[_2_]

Combobox rowsource from non-contiguous cells
 
I've looked all over trying to find a solution for this, but no luck
yet.

I would like to set a userform combobox with a rowsource from three
non-contiguous cells, ie., m33, m37, m38. Does anyone know if this is
even possible?

Thanks,
Greg

Mike H

Combobox rowsource from non-contiguous cells
 
Hi,

Do it programatically when the userfrom loads

Private Sub UserForm_Activate()
With ComboBox1
.AddItem Range("M33").Value
.AddItem Range("M37").Value
.AddItem Range("M38").Value
End With

End Sub


Mike

"Gig" wrote:

I've looked all over trying to find a solution for this, but no luck
yet.

I would like to set a userform combobox with a rowsource from three
non-contiguous cells, ie., m33, m37, m38. Does anyone know if this is
even possible?

Thanks,
Greg



All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com