Can Listfillrange be used with a listbox on a form?

S

Simon Skelton

I have a worksheet with a list called "Employees"

I want to use that list to populate a listbox called "lbEmployees" on a form
instead of using multiple lines of additem.

I thought this would have been possible using listfillbox but, if it is, I
can't generate the correct syntax. I am beginning to think that listfillbox
can only be used with listboxes embedded in a worksheet - although that does
sound somewhat illogical.

Are there any suggestions as to the correct syntax that I should use to
allow me to use listfillbox in a form?

Cheers.
 
O

OssieMac

Hi Simon,

Try the following.

UserForm1.Show
UserForm1.ListBox1.RowSource = "Sheet1!A1:A20"
 
R

Rick Rothstein

You should really stick with your original thread. This what I posted
there...

Try this...

cmbName.RowSource = "Employees"
 

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