list boxes

  • Thread starter Thread starter john.9.williams
  • Start date Start date
J

john.9.williams

Hi i wish to display data within a listbox on a userform, i can do it
by entering the row source in the properties but can i write it in the
userform activate event, the code i am using at the moment is

ListBox1.Text = Range("a1:d50").Text

this is not working , so any help greatly received

john
 
Hi John

ListBox1.RowSource = "Sheet1!A1:D50"

HTH. Best wishes Harald
 

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

Back
Top