Selection from combobox is text not number!

DaddyWeg

New Member
Joined
Dec 25, 2003
Messages
18
Hello Everyone!

I have two selections in a combo box. Both are numbers. However, when I select either one and it enters that value in the linked cell, it is seen as text instead of a number. Is there a way to fix this so that every time a selection is made it is returned as a number?

:rolleyes:
 
What do you mean "linked"? How? via .RowSource or some other method?

Is it causing errors now?



No just by range cells in the properties. But my list has text and numbers so when I don't use a code in the combobox, the numbers don't work in my formulas that I have looking up my linked cell. And when I use a code that converts the combobox values to number then if a text option is selected then that doesn't work in my formula.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
No just by range cells in the properties. But my list has text and numbers so when I don't use a code in the combobox, the numbers don't work in my formulas that I have looking up my linked cell. And when I use a code that converts the combobox values to number then if a text option is selected then that doesn't work in my formula.
 
Upvote 0
Range of cells in what property of the ListBox?
Is this listbox in a userform or an ActiveX box on the worksheet or from the Forms menu?

How does the selected ListItem get back to the workbook.
A Combobox presents a list of options for the user to choose from, but there is no automatic property that will put the user's choice (from a userform) into a cell.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,989
Messages
6,133,891
Members
449,843
Latest member
TheLastLinuxUser

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top