row source

Z

Zaahir

Hi

I have a combobox on a userform.

frmMain.cmb1.RowSource = CustomerInfo

this code returns an error msg "Could not set rowsource, invalid property
value"

how do i set the rowsource correctly?

thanx
 
N

Norman Jones

Hi Zaahir,

The RowSource property requires a string.

What is CustomerInfo?

If CustomerInfo is a range name, try something like:

'=============>>
Private Sub UserForm_Initialize()
Me.ComboBox1.RowSource = _
Range("CustomerInfo").Address(External:=True)
End Sub
'<<=============
 

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

Similar Threads

RowSource 4
Combobox Rowsource 2
Combo box source from other workbook 1
Userform ComboBox Row Source 1
Set RowSource 3
ComboBox match issue 4
I figured out the issue thank you. 0
Optionbutton Not working 3

Top