Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default I need help to show the contents of a range in a listbox...

I have a long list in a sheet with 4 columns. Column 1 is the names, column
2 is class #, column 3 is ID #. column 4 is city name. I want to create a
combobox, with 3 listboxes. A combobox shows number 1 to 5 and many more
later. This case is 5 classes. When I selected a number in combobox for a
class, I wanted each listbox shows correct its contents of a rows in a column
as name, ID, city. The list of each name and class will more later.

Can someone help me to code that in a userform? Thanks.
Tvnguyen
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default I need help to show the contents of a range in a listbox...


"Tvnguye" schreef in bericht
...
I have a long list in a sheet with 4 columns. Column 1 is the names,
column
2 is class #, column 3 is ID #. column 4 is city name. I want to create
a
combobox, with 3 listboxes. A combobox shows number 1 to 5 and many more
later. This case is 5 classes. When I selected a number in combobox for
a
class, I wanted each listbox shows correct its contents of a rows in a
column
as name, ID, city. The list of each name and class will more later.

Can someone help me to code that in a userform? Thanks.
Tvnguyen



Maybe it's nicer to use 1 listbox with 3 columns, instead of 3 listboxes
with 1 column each. Some listbox samples with Name, Class, ID and City are
he
http://www.geocities.com/xlsdemos/xls/LISTBOXDEMO.xls
(83kB)


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default I need help to show the contents of a range in a listbox...

Hi Moon,
Thank you very much for your help.
Your help is very wonderful. I will study your codes in both forms to apply
to my work. Probably later when I have the problems in visual basic, may I
send the question to you? Please let me know?

Thank you very much.
Tvnguye

"moon" wrote:


"Tvnguye" schreef in bericht
...
I have a long list in a sheet with 4 columns. Column 1 is the names,
column
2 is class #, column 3 is ID #. column 4 is city name. I want to create
a
combobox, with 3 listboxes. A combobox shows number 1 to 5 and many more
later. This case is 5 classes. When I selected a number in combobox for
a
class, I wanted each listbox shows correct its contents of a rows in a
column
as name, ID, city. The list of each name and class will more later.

Can someone help me to code that in a userform? Thanks.
Tvnguyen



Maybe it's nicer to use 1 listbox with 3 columns, instead of 3 listboxes
with 1 column each. Some listbox samples with Name, Class, ID and City are
he
http://www.geocities.com/xlsdemos/xls/LISTBOXDEMO.xls
(83kB)



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default I need help to show the contents of a range in a listbox...


"Tvnguye" schreef in bericht
...
Hi Moon,
Thank you very much for your help.
Your help is very wonderful. I will study your codes in both forms to
apply
to my work. Probably later when I have the problems in visual basic, may
I
send the question to you? Please let me know?

Thank you very much.
Tvnguye



Hello,

Yes, of course it's okay to send the questions.
Good luck for now.

moon


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default I need help to show the contents of a range in a listbox...

9/26/06

Hi Moon,

I thank you very much for your help last time. I learned a lot from your
help. This time I would like to add another ComboBox to show the names, and
3 TextBoxes to show correct cells of each name, such as class, ID, City. I
assume that some name is duplicated because each person can study more than
one class, and some time there are some persons with the same name. I dont
know I should use 1 or 3 TextBoxes or another way that I dont know yet, but
I hope you know the best way to do this. Also how to have the column
headings in textbox or listbox? Can you help me for this case? Thank you in
advance.
Tvnguyen


"moon" wrote:


"Tvnguye" schreef in bericht
...
Hi Moon,
Thank you very much for your help.
Your help is very wonderful. I will study your codes in both forms to
apply
to my work. Probably later when I have the problems in visual basic, may
I
send the question to you? Please let me know?

Thank you very much.
Tvnguye



Hello,

Yes, of course it's okay to send the questions.
Good luck for now.

moon





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 53
Default I need help to show the contents of a range in a listbox...


"Tvnguye" schreef in bericht
...
9/26/06

Hi Moon,

I thank you very much for your help last time. I learned a lot from your
help. This time I would like to add another ComboBox to show the names,
and
3 TextBoxes to show correct cells of each name, such as class, ID, City.
I
assume that some name is duplicated because each person can study more
than
one class, and some time there are some persons with the same name. I don't
know I should use 1 or 3 TextBoxes or another way that I don't know yet,
but
I hope you know the best way to do this. Also how to have the column
headings in textbox or listbox? Can you help me for this case? Thank you
in
advance.
Tvnguyen



Hi there again,

I updated 'your' file http://www.geocities.com/xlsdemos/xls/LISTBOXDEMO.xls
and added two more form samples. One listbox uses a rowsource (with
columnheads), the other sample uses an array to fill the list.
Please check it out, I hope it will help.


moon






"moon" wrote:


"Tvnguye" schreef in bericht
...
Hi Moon,
Thank you very much for your help.
Your help is very wonderful. I will study your codes in both forms to
apply
to my work. Probably later when I have the problems in visual basic,
may
I
send the question to you? Please let me know?

Thank you very much.
Tvnguye



Hello,

Yes, of course it's okay to send the questions.
Good luck for now.

moon





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
Printing contents of a listbox Graham Whitehead Excel Programming 1 August 10th 06 02:36 PM
Using a listbox to show every unique record in a range [email protected] Excel Worksheet Functions 4 July 19th 06 06:04 PM
Compare multiple listbox contents TASDEVIL Excel Programming 1 October 10th 05 01:19 AM
print listbox contents Dave Peterson[_3_] Excel Programming 1 August 26th 03 04:13 AM
Copying contents of a listbox B[_2_] Excel Programming 0 August 7th 03 02:55 PM


All times are GMT +1. The time now is 12:29 PM.

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

About Us

"It's about Microsoft Excel"