#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default list boxes

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default list boxes

ListBox1.ColumnCount = 4
ListBox1.List = Range("a1:d50").Value

--
Regards,
Tom Ogilvy



wrote in message
oups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default list boxes

Hi John

ListBox1.RowSource = "Sheet1!A1:D50"

HTH. Best wishes Harald

skrev i melding
oups.com...
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



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
Selecting subsets using combo boxes or list boxes CLamar Excel Discussion (Misc queries) 0 June 1st 06 07:43 PM
Questions on combo boxes and list boxes. Marc New Users to Excel 1 March 14th 06 09:40 AM
list boxes hdodson Excel Programming 3 December 2nd 04 11:30 PM
List Boxes RC[_4_] Excel Programming 4 June 2nd 04 05:08 PM
List boxes/combo boxes Tibow Excel Programming 3 February 17th 04 12:35 PM


All times are GMT +1. The time now is 03:01 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"