Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 336
Default How to load a listbox in a userform?

Hi all,
How do I load a listbox in a userform. I've been trying to look for articles
or leassons but have not found anything. Please help.

By the way, thank's to everybody who answered my last question.

Martin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How to load a listbox in a userform?

Create a dynamic range with your data .... say "MyList"

In the Properties of the Listbox, set Rowsource attribute to "Mylist" (no
quotes)

Clicking on the Listbox in VBE should give you the Properties window

HTH

"Martin" wrote:

Hi all,
How do I load a listbox in a userform. I've been trying to look for articles
or leassons but have not found anything. Please help.

By the way, thank's to everybody who answered my last question.

Martin

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 336
Default How to load a listbox in a userform?

Can you please explain more in detail what to do. When I write Mylist in the
rowsource field I get an error message.
Thank you
Martin

"Toppers" wrote:

Create a dynamic range with your data .... say "MyList"

In the Properties of the Listbox, set Rowsource attribute to "Mylist" (no
quotes)

Clicking on the Listbox in VBE should give you the Properties window

HTH

"Martin" wrote:

Hi all,
How do I load a listbox in a userform. I've been trying to look for articles
or leassons but have not found anything. Please help.

By the way, thank's to everybody who answered my last question.

Martin

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default How to load a listbox in a userform?

To create named (non-dynamic) range:

Highlight your list of data (say A1:A20)

Insert=Name=Define ...give it a name ("Mylist").

Rowsource should now work.

For a dynamic range, set the 'Refers to' entry In the Define step) as:

=OFFSET(Sheet1!$A$1,,,COUNTA(Sheet1!$A:$A),1)

Change Sheet1 & column (A) if required: this assumes data starts in row 1 (A1)

HTH

"Martin" wrote:

Can you please explain more in detail what to do. When I write Mylist in the
rowsource field I get an error message.
Thank you
Martin

"Toppers" wrote:

Create a dynamic range with your data .... say "MyList"

In the Properties of the Listbox, set Rowsource attribute to "Mylist" (no
quotes)

Clicking on the Listbox in VBE should give you the Properties window

HTH

"Martin" wrote:

Hi all,
How do I load a listbox in a userform. I've been trying to look for articles
or leassons but have not found anything. Please help.

By the way, thank's to everybody who answered my last question.

Martin

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
Load caption box on userform open ExcelMonkey Excel Worksheet Functions 1 April 3rd 07 11:02 PM
???Help??? Userform.Listbox.rowsource = ??? Steve Sparti Excel Discussion (Misc queries) 0 March 1st 06 09:44 PM
Userform Listbox using an active sheet [email protected] Excel Discussion (Misc queries) 0 March 1st 06 08:22 PM
UserForm Listbox issue bach Excel Discussion (Misc queries) 29 October 6th 05 01:48 PM
UserForm Listbox in VBC Marcia3641 Excel Discussion (Misc queries) 7 July 22nd 05 10:20 AM


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