Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mik Mik is offline
external usenet poster
 
Posts: 42
Default Multi Column UserForm ListBox

I have a UserForm listbox where i want to display the contents of a
worksheet range in 3 listbox columns.

example:
Cell value of "A1:A10" in Column 1
Cell value of "B1:B10" in Column 2
Cell value of "C1:C10" in Column 3

Would it be easier with an ARRAY of text in the Userform code or
Additem?
I am open to suggestions.

Please spell out the code, as I am still learning and new to Userforms
/ ListBox.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Multi Column UserForm ListBox

Hi Mik,

You actually don't need any code for this. You can set the RowSource
property of the ListBox to Sheet1!A1:C10, then set the ColumnCount property
to 3. Now, when the form is loaded, it will display 3 columns of data from
Sheet1 cells A1:C10.

--
Regards,

Jake Marx
www.longhead.com


[please keep replies in the newsgroup - email address unmonitored]


Mik wrote:
I have a UserForm listbox where i want to display the contents of a
worksheet range in 3 listbox columns.

example:
Cell value of "A1:A10" in Column 1
Cell value of "B1:B10" in Column 2
Cell value of "C1:C10" in Column 3

Would it be easier with an ARRAY of text in the Userform code or
Additem?
I am open to suggestions.

Please spell out the code, as I am still learning and new to Userforms
/ ListBox.



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
multi-column listbox on userform, multiple issues KR Excel Programming 2 February 15th 06 07:55 PM
Multi Colum Listbox in UserForm Zani Excel Programming 2 January 13th 06 12:05 AM
AddItem with multi-column listBox David Excel Programming 4 October 26th 05 05:51 PM
Sort a multi column listbox in userform Martin Excel Programming 3 August 7th 05 09:18 PM
Multi-Column Listbox properties Otto Moehrbach[_6_] Excel Programming 1 December 5th 04 10:35 PM


All times are GMT +1. The time now is 07:14 AM.

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"