row source

G

Guest

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

Top