Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can Listfillrange be used with a listbox on a form?

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Can Listfillrange be used with a listbox on a form?

Hi Simon,

Try the following.

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


--
Regards,

OssieMac


"Simon Skelton" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Can Listfillrange be used with a listbox on a form?

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

Try this...

cmbName.RowSource = "Employees"

--
Rick (MVP - Excel)


"Simon Skelton" wrote in message
...
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.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Listfillrange be used with a listbox or combobox on a form? Simon Skelton Excel Programming 2 February 7th 09 05:33 AM
Can Listfillrange be used with a listbox or combobox on a form? JLGWhiz Excel Programming 0 February 7th 09 04:35 AM
Listbox in a form Dan Excel Programming 4 June 26th 07 04:21 PM
listbox value to a form alexanderd[_11_] Excel Programming 1 July 17th 05 04:24 PM
.ListFillRange as Variable ? in Listbox [email protected] Excel Programming 1 November 14th 03 03:29 AM


All times are GMT +1. The time now is 08:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"