#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 36
Default Combo Box

I have a combo box linked to cells in a column Cell B5 to B10. In Cell B4 the
numbers 1 to 6 appear. I want Cell A5 to contain the text from the selected
cell. For instance B7 contains the word Sales, when Sales is selected from
the combo box the number 3 appears in Cell B4 and A5. I require the word
Sales to appear in Cell A5. Can you advise how to do this?

Many thanks for any assistance.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Combo Box

=INDEX(B5:B10,B4)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"zephyr" wrote in message
...
I have a combo box linked to cells in a column Cell B5 to B10. In Cell B4
the
numbers 1 to 6 appear. I want Cell A5 to contain the text from the
selected
cell. For instance B7 contains the word Sales, when Sales is selected
from
the combo box the number 3 appears in Cell B4 and A5. I require the word
Sales to appear in Cell A5. Can you advise how to do this?

Many thanks for any assistance.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Combo Box

If youo double click the combobox a macro should be create when you are in
design mode. To get into design mode

1) View menu - tool bars - Command control
clik on triangle on tool bar. double click combobox
2) Then click on property on tool bar and again click combox
Listfillrange should be B5:B10
3) Add the two ranges to the comboxbox code

Private Sub ComboBox1_Change()
Range("B4") = ComboBox1.ListIndex + 1
Range("A5") = ComboBox1.Text
End Sub

4) On tool bar exit design mode by pressing triangle.
5) The combox box should not automatically change the two cells
"zephyr" wrote:

I have a combo box linked to cells in a column Cell B5 to B10. In Cell B4 the
numbers 1 to 6 appear. I want Cell A5 to contain the text from the selected
cell. For instance B7 contains the word Sales, when Sales is selected from
the combo box the number 3 appears in Cell B4 and A5. I require the word
Sales to appear in Cell A5. Can you advise how to do this?

Many thanks for any assistance.

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
linking a form combo box... results from the combo box to another Trey Excel Discussion (Misc queries) 1 July 15th 07 01:58 AM
combo reference on another combo box for picking address etc. kbjin Excel Worksheet Functions 1 December 8th 06 03:29 PM
Can one combo box control the data in a different combo box MarkM Excel Discussion (Misc queries) 5 October 9th 06 11:44 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM


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