Combobox rowsource from non-contiguous cells

G

Gig

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
 
M

Mike H

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top