PC Review


Reply
Thread Tools Rate Thread

combo box value position instead of text?

 
 
david.j.winfield@gmail.com
Guest
Posts: n/a
 
      7th Sep 2007
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 With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      7th Sep 2007
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.

"(E-Mail Removed)" 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 With Quote
 
david.j.winfield@gmail.com
Guest
Posts: n/a
 
      7th Sep 2007
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 <JLGW...@discussions.microsoft.com> 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.
>
> "david.j.winfi...@gmail.com" 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 With Quote
 
david.j.winfield@gmail.com
Guest
Posts: n/a
 
      7th Sep 2007
I can get a range value using find for example:
Sheets("view
settings").Range("A8:A28").Find(reports_ComboBox.Object.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, "david.j.winfi...@gmail.com"
<david.j.winfi...@gmail.com> 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 <JLGW...@discussions.microsoft.com> 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.

>
> > "david.j.winfi...@gmail.com" 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 With Quote
 
david.j.winfield@gmail.com
Guest
Posts: n/a
 
      7th Sep 2007
range("$A$11).column and range("$A$11).row

On Sep 6, 9:04 pm, "david.j.winfi...@gmail.com"
<david.j.winfi...@gmail.com> wrote:
> I can get a range value using find for example:
> Sheets("view
> settings").Range("A8:A28").Find(reports_ComboBox.Object.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, "david.j.winfi...@gmail.com"
>
> <david.j.winfi...@gmail.com> 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 <JLGW...@discussions.microsoft.com> 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.

>
> > > "david.j.winfi...@gmail.com" 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pre-position a combo box Bill Microsoft Access Form Coding 10 17th Feb 2007 03:44 AM
'remembering' position in a combo box =?Utf-8?B?Y2lubmll?= Microsoft Access Form Coding 1 30th Jan 2007 08:21 PM
How do I lock a combo box's position once it is placed? =?Utf-8?B?dGRvcmU=?= Microsoft Excel Programming 1 14th Jan 2005 03:19 AM
Combo Box Position SaraM Microsoft Excel Worksheet Functions 0 13th Jul 2004 04:58 PM
Combo currencymanager position not set Shravan Microsoft C# .NET 0 7th Nov 2003 10:40 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:51 PM.