Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Pull Down Menu's

I have mad made a bunch of pull down menus where you can
select as many things as you want by pressing the ctrl
key. Is there a way to pull whatever the user has
selected, lets say three options, and generate those
answers as a list in another cell? It's a type of survey
and I want to be able to generate a table that lists all
the options selected for each question. Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pull Down Menu's

sStr = ""

for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
sStr = sStr & listbox1.List(i) & chr(10)
end if
Next

Not sure what you mean by a list in another cell.

Are you using listboxes from the control toolbox toolbar?

--
Regards,
Tom Ogilvy

" wrote in message
...
I have mad made a bunch of pull down menus where you can
select as many things as you want by pressing the ctrl
key. Is there a way to pull whatever the user has
selected, lets say three options, and generate those
answers as a list in another cell? It's a type of survey
and I want to be able to generate a table that lists all
the options selected for each question. Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pull Down Menu's

Let's see, Pull Down Menus?

I guess I didn't read closely enough.

Are the menus like the Edit menu and Tools Menu. Are they comboboxes from
where?

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
sStr = ""

for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
sStr = sStr & listbox1.List(i) & chr(10)
end if
Next

Not sure what you mean by a list in another cell.

Are you using listboxes from the control toolbox toolbar?

--
Regards,
Tom Ogilvy

" wrote in message
...
I have mad made a bunch of pull down menus where you can
select as many things as you want by pressing the ctrl
key. Is there a way to pull whatever the user has
selected, lets say three options, and generate those
answers as a list in another cell? It's a type of survey
and I want to be able to generate a table that lists all
the options selected for each question. Thanks





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Pull Down Menu's

Yes I'm using listboxes. What I mean is that when the
user selects three options and I want those three options
to populate in one cell, if possible, say b17. if not in
three subsequent cells like b17-19.



-----Original Message-----
sStr = ""

for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
sStr = sStr & listbox1.List(i) & chr(10)
end if
Next

Not sure what you mean by a list in another cell.

Are you using listboxes from the control toolbox toolbar?

--
Regards,
Tom Ogilvy

"

wrote in message
...
I have mad made a bunch of pull down menus where you can
select as many things as you want by pressing the ctrl
key. Is there a way to pull whatever the user has
selected, lets say three options, and generate those
answers as a list in another cell? It's a type of

survey
and I want to be able to generate a table that lists all
the options selected for each question. Thanks



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Pull Down Menu's

Its a pull down menu like you had thought earlier.
Listboxes. The format is like a survey where there is a
question and then a pull down box that has multiple
possible answers. The user can select multiple answers
out of the possible selections for each question. I want
the answers of these to be populated elsewhere on the
worksheet in subsequent cells.
-----Original Message-----
Let's see, Pull Down Menus?

I guess I didn't read closely enough.

Are the menus like the Edit menu and Tools Menu. Are

they comboboxes from
where?

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
sStr = ""

for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
sStr = sStr & listbox1.List(i) & chr(10)
end if
Next

Not sure what you mean by a list in another cell.

Are you using listboxes from the control toolbox

toolbar?

--
Regards,
Tom Ogilvy

"

wrote in message
...
I have mad made a bunch of pull down menus where you

can
select as many things as you want by pressing the ctrl
key. Is there a way to pull whatever the user has
selected, lets say three options, and generate those
answers as a list in another cell? It's a type of

survey
and I want to be able to generate a table that lists

all
the options selected for each question. Thanks





.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Pull Down Menu's

sStr = ""

for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
sStr = sStr & listbox1.List(i) & chr(10)
end if
Next
Range("B17").Value = sStr

Your description sounds more like a combobox, however, since they drop down,
but in either case (combobox or listbox) you would just change the name to
match the combobox/listbox name; the code otherwise would be the same.


--
Regards,
Tom Ogilvy

" wrote in message
...
Yes I'm using listboxes. What I mean is that when the
user selects three options and I want those three options
to populate in one cell, if possible, say b17. if not in
three subsequent cells like b17-19.



-----Original Message-----
sStr = ""

for i = 0 to listbox1.Listcount - 1
if listbox1.Selected(i) then
sStr = sStr & listbox1.List(i) & chr(10)
end if
Next

Not sure what you mean by a list in another cell.

Are you using listboxes from the control toolbox toolbar?

--
Regards,
Tom Ogilvy

"

wrote in message
...
I have mad made a bunch of pull down menus where you can
select as many things as you want by pressing the ctrl
key. Is there a way to pull whatever the user has
selected, lets say three options, and generate those
answers as a list in another cell? It's a type of

survey
and I want to be able to generate a table that lists all
the options selected for each question. Thanks



.



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
Drop Down menu's Lee Excel Discussion (Misc queries) 2 December 4th 07 04:35 PM
What do I need to change to get menu's to open when using Alt+(?) Ron Chartier Excel Discussion (Misc queries) 0 May 26th 06 06:01 PM
Pull Down menu's Robin Excel Worksheet Functions 7 October 7th 05 09:31 PM
Custom Menu's Fgomez Excel Discussion (Misc queries) 1 April 19th 05 02:43 PM
Drop Down Menu's abfabrob Excel Discussion (Misc queries) 4 February 4th 05 02:19 PM


All times are GMT +1. The time now is 12:40 AM.

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"