Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Capture listbox selection to a cell in a different sheet

Basically I have an input/user sheet, an output sheet. The user makes a
selection from a listbox in the Input sheet, and I need what was
selected to be put in a cell in the Output sheet. Anyone know how to
do this? I've done this just doing cell to cell. That would be
"=input!A2" but I'm not sure how to do it for a listbox selection.
Thanks in advance.

Also, does anyone know how to get rid of the horizontal scrollbar that
automatically comes up with a listbox. Its not needed, and I cant
figure out how to get rid of it. Something about changing the "width"
under "properties" in the control toolbox.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Capture listbox selection to a cell in a different sheet

I usually use comboboxes instead of listboxes. You can use a click even to
populate a range in another cell.

like

Private Sub ComboBox1_Change()
sheets("output").range("A2").value = combobox1.value

End Sub

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Capture listbox selection to a cell in a different sheet

Set the linkedcell property of the listbox to the cell where you want the
selection to appear

Make the control toolbox toolbar visible and click the upper left icon so it
appears depressed. This puts you in design mode where you can change the
properties of the listbox. Right click on the listbox and select
properties. One of the properties should be LinkedCell. Put in an entry
like Output!B9

Also, another property is Width. Make the number larger.

--
Regards,
Tom Ogilvy

Marcie wrote in message
...
Basically I have an input/user sheet, an output sheet. The user makes a
selection from a listbox in the Input sheet, and I need what was
selected to be put in a cell in the Output sheet. Anyone know how to
do this? I've done this just doing cell to cell. That would be
"=input!A2" but I'm not sure how to do it for a listbox selection.
Thanks in advance.

Also, does anyone know how to get rid of the horizontal scrollbar that
automatically comes up with a listbox. Its not needed, and I cant
figure out how to get rid of it. Something about changing the "width"
under "properties" in the control toolbox.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/



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
Listbox selection ub Excel Discussion (Misc queries) 0 March 10th 09 06:43 PM
How to capture the Sheet name in a cell SGangs Excel Discussion (Misc queries) 3 December 15th 08 11:38 AM
capture listbox click Joanne New Users to Excel 13 July 7th 07 01:00 PM
protect cells after listbox selection Chay Excel Discussion (Misc queries) 2 December 2nd 06 11:32 PM
Listbox & Selection sparx Excel Discussion (Misc queries) 0 July 31st 06 10:48 PM


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