Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 267
Default Link cell to combo box

Need help fast!!
Im have meade a combo box from the forms menu (hads to be from the forms
menu as im using vba to dynamically change the list fill range according to
the active cell)
I linked the combo box to a worksheet cell but all it gives me is the number
of the row I select in the drop down not the actual item selected!
Have tried allsorts and am now desperate!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Link cell to combo box

I bet you could have used a combobox from the control toolbox toolbar to
accomplish the same thing.

But if the linked cell is A1 and the list is in a named range "myList", then you
could use another cell to get the value shown in the dropdown.

=if(a1=0,"",index(mylist,a1))

Atishoo wrote:

Need help fast!!
Im have meade a combo box from the forms menu (hads to be from the forms
menu as im using vba to dynamically change the list fill range according to
the active cell)
I linked the combo box to a worksheet cell but all it gives me is the number
of the row I select in the drop down not the actual item selected!
Have tried allsorts and am now desperate!!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Link cell to combo box

That's the way the forms Combo control works. Work with it. You can set up
the cell that it's linked to in an "out of the way" location and use it from
there as an index into the same range that you set up for your combo list
source to return the actual text via a formula in the cell where you want the
text to appear.

Simple example: you set the linked cell up as D19. At the particular point
in time you're using your combo box, its data source is range I1:I12. A
formula such as this would display the proper text:
=INDEX(I1:I12,D19)
Your VBA code will need to alter the formula in that cell at the time it
alters the data source for the Combo box. Assuming you have that data source
range (I1:I12) in a variable called myListAddres, the code could look
something like this:

Worksheets("Sheet1").Range("D19").Formula = _
"=INDEX(" & myListAddress & ",D19)"

Hope this helps some.

"Atishoo" wrote:

Need help fast!!
Im have meade a combo box from the forms menu (hads to be from the forms
menu as im using vba to dynamically change the list fill range according to
the active cell)
I linked the combo box to a worksheet cell but all it gives me is the number
of the row I select in the drop down not the actual item selected!
Have tried allsorts and am now desperate!!

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
forcing excel to update the Cell Link when copying Combo Boxes Baraki0568 Excel Worksheet Functions 0 September 13th 06 04:16 AM
combo box with more then one link Hassan Merzha Excel Discussion (Misc queries) 5 June 20th 06 12:40 PM
link few combo box Hassan Merzha Excel Discussion (Misc queries) 2 June 14th 06 02:50 PM
Is it possible to re-link a cell back to a combo box? AlP Excel Discussion (Misc queries) 1 February 18th 05 11:39 PM
Can I copy a combo box in Excel 2002 with a relative cell link? Bozo Excel Discussion (Misc queries) 1 February 17th 05 02:05 AM


All times are GMT +1. The time now is 10:48 PM.

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"