Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default combo box value position instead of text?

Is there a way to get a combobox object to give the position of the
item selected instead of the text. If I use combobox.value I just get
the text selected.

I have populated a combo box from a range of cells, and I would like
to know the cell that the text came from not the text itself.

Thanks,
David

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default combo box value position instead of text?

I don't know of a built in function to do that. You could probably write
some code to do it, since you know the range the combobox list comes from.
It is just a matter of tying the list index to the range array.

" wrote:

Is there a way to get a combobox object to give the position of the
item selected instead of the text. If I use combobox.value I just get
the text selected.

I have populated a combo box from a range of cells, and I would like
to know the cell that the text came from not the text itself.

Thanks,
David


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default combo box value position instead of text?

Thanks, that is what I figured. I know how to create the VBA to do
what I want; I just thought that it would have been an obvious built
in feature that I was over looking.

On Sep 6, 8:46 pm, JLGWhiz wrote:
I don't know of a built in function to do that. You could probably write
some code to do it, since you know the range the combobox list comes from.
It is just a matter of tying the list index to the range array.

" wrote:
Is there a way to get a combobox object to give the position of the
item selected instead of the text. If I use combobox.value I just get
the text selected.


I have populated a combo box from a range of cells, and I would like
to know the cell that the text came from not the text itself.


Thanks,
David



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default combo box value position instead of text?

I can get a range value using find for example:
Sheets("view
settings").Range("A8:A28").Find(reports_ComboBox.O bject.Value).Address

Is there some command to convert a range value such as $A$11 to a
numerical rows/columns number?

On Sep 6, 8:52 pm, "
wrote:
Thanks, that is what I figured. I know how to create the VBA to do
what I want; I just thought that it would have been an obvious built
in feature that I was over looking.

On Sep 6, 8:46 pm, JLGWhiz wrote:

I don't know of a built in function to do that. You could probably write
some code to do it, since you know the range the combobox list comes from.
It is just a matter of tying the list index to the range array.


" wrote:
Is there a way to get a combobox object to give the position of the
item selected instead of the text. If I use combobox.value I just get
the text selected.


I have populated a combo box from a range of cells, and I would like
to know the cell that the text came from not the text itself.


Thanks,
David



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default combo box value position instead of text?

range("$A$11).column and range("$A$11).row

On Sep 6, 9:04 pm, "
wrote:
I can get a range value using find for example:
Sheets("view
settings").Range("A8:A28").Find(reports_ComboBox.O bject.Value).Address

Is there some command to convert a range value such as $A$11 to a
numerical rows/columns number?

On Sep 6, 8:52 pm, "

wrote:
Thanks, that is what I figured. I know how to create the VBA to do
what I want; I just thought that it would have been an obvious built
in feature that I was over looking.


On Sep 6, 8:46 pm, JLGWhiz wrote:


I don't know of a built in function to do that. You could probably write
some code to do it, since you know the range the combobox list comes from.
It is just a matter of tying the list index to the range array.


" wrote:
Is there a way to get a combobox object to give the position of the
item selected instead of the text. If I use combobox.value I just get
the text selected.


I have populated a combo box from a range of cells, and I would like
to know the cell that the text came from not the text itself.


Thanks,
David



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
chart text position Chris Excel Programming 3 January 29th 07 02:46 PM
Chart text position Chris Excel Discussion (Misc queries) 1 January 27th 07 02:39 AM
How do I lock a combo box's position once it is placed? tdore Excel Programming 1 January 14th 05 03:19 AM
Combo Box goes to edit mode even if design mode is in OFF position Chas Excel Discussion (Misc queries) 0 January 7th 05 07:21 PM
Text box Scroll bar position Vinay[_2_] Excel Programming 2 June 10th 04 04:46 PM


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