theSquirrel
12/12/2006 8:21:00 PM
Nothing at all, it was my mistake, I thought you wanted the chosen
value of the combo box to be in the cell.
Change the code to the following:
Private Sub ComboBox1_Change()
Range("A1").Value = ComboBox1.ListIndex + 1
End Sub
This will place the number in the cell instead of the value.
Just for your information, the index for list boxes starts at 0 instead
of 1, thus the + 1 at the end.
theSquirrel
On Dec 12, 12:01 pm, "Hector Fernandez" <public.resea...@gmail.com>
wrote:
> Squirrel,
>
> I've tried your recommendation, however all it does it put the actual
> text from the ComboBox into the chosen linked cell.
>
> So, if my list of options in the ComboBox is, for example:
>
> Car
> Boat
> Plane
>
> If I choose Boat I would expect it to put a value of 2 in my chosen
> linked cell, however it is putting the word Boat in the cell.
>
> What am I doing wrong?