![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
I am trying to select text out of a combo box and populate another cell with that text. But when I do that all I get is a number, is there any way to get the text value to populate another cell?
|
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Where the wild roses grow
Posts: 285
|
So you want whatever you pick from a combobox to appear in a cell? Whatever cell you want it to go into, use this code:
worksheets("sheetnamehere").range("cellreferencehere").value = combobox1 That's assuming your combobox is called combobox1. You need to paste this into your combobox's change event. To get there go into VB editor and double click the combobox on your userform design Audiojoe [ This Message was edited by: Audiojoe on 2002-04-23 09:24 ] |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,318
|
Quote:
=INDEX(input-range,cell-link) where input-range is the range the ComboBox uses and cell-link is is its Cell link. |
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Thanks a bunch guys, it works.
Cheers |
|
|
|
|
|
#5 |
|
New Member
Join Date: Apr 2002
Location: Atlanta,Ga
Posts: 7
|
Newbie needs someone to hold his hand...
I am trying to create a combo box or? to enable the user to pick from a list. I have created a sheet with all data in seperate columns, but in the same workbook. I have tried both of the aforementioned methods, but, I just don't get it. Step-by-step anyone? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|