ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   combobox fraction (https://www.excelbanter.com/excel-programming/407596-combobox-fraction.html)

[email protected]

combobox fraction
 
I have a combobox populated with fractions that display properly.
After selection the fraction converts to a decimal, but the list
values are still fractions. How can i display the selected value as a
fraction?

Thanks

Rick Rothstein \(MVP - VB\)[_1437_]

combobox fraction
 
Can you show/tell us how you populated the ComboBox with your fractions?

Rick

wrote in message
...
I have a combobox populated with fractions that display properly.
After selection the fraction converts to a decimal, but the list
values are still fractions. How can i display the selected value as a
fraction?

Thanks



[email protected]

combobox fraction
 
On Mar 12, 5:04 pm, "Rick Rothstein \(MVP - VB\)"
wrote:
Can you show/tell us how you populated the ComboBox with your fractions?

Rick

wrote in message

...

I have a combobox populated with fractions that display properly.
After selection the fraction converts to a decimal, but the list
values are still fractions. How can i display the selected value as a
fraction?


Thanks


ya that was it, i figured it out yesterday. the populated values from
the cells were entered as 0 1/3 which shows in the formula bar as .
33333333 so it was already converted before being passed to the
routine... i fixed this by entering them as '1/3 and then converting
to a number in the routine

Thanks again


All times are GMT +1. The time now is 11:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com