ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Combobox changes the decimal commas to dots - How to prevent it? (https://www.excelbanter.com/excel-discussion-misc-queries/131807-combobox-changes-decimal-commas-dots-how-prevent.html)

Erkka

Combobox changes the decimal commas to dots - How to prevent it?
 
Hi!

I have tried to use a combobox in selection between values which have a
decimal part. As I'm European I use commas as decimal separators. However
although in the selection list of combobox the decimal separator is comma,
the chosen value in the linked cell is written with a dot and so I cannot use
the value as as a source value for calculation. Why is this happening? Why
does the combobox change the decimal separator? The weirdest thing about this
is that sometimes the combobox has returned the right value with a comma as
decimal separator.

Can anyone help with this?

Thanks in advance,
Erkka

joel

Combobox changes the decimal commas to dots - How to prevent it?
 
Microsoft doesn't like the Europeans. Yesterday somebody was sending the
European date formatt to a combo box and kept on getting the US format. The
solution was to convert to a string before sending the date to the combobox.

"Erkka" wrote:

Hi!

I have tried to use a combobox in selection between values which have a
decimal part. As I'm European I use commas as decimal separators. However
although in the selection list of combobox the decimal separator is comma,
the chosen value in the linked cell is written with a dot and so I cannot use
the value as as a source value for calculation. Why is this happening? Why
does the combobox change the decimal separator? The weirdest thing about this
is that sometimes the combobox has returned the right value with a comma as
decimal separator.

Can anyone help with this?

Thanks in advance,
Erkka


Erkka

Combobox changes the decimal commas to dots - How to prevent i
 
Finally got it working, just needed to change the source values to text with
=TEXT(a1;"0,00")

Thanks Joel for the tip!

-Erkka

"Joel" kirjoitti:

Microsoft doesn't like the Europeans. Yesterday somebody was sending the
European date formatt to a combo box and kept on getting the US format. The
solution was to convert to a string before sending the date to the combobox.

"Erkka" wrote:

Hi!

I have tried to use a combobox in selection between values which have a
decimal part. As I'm European I use commas as decimal separators. However
although in the selection list of combobox the decimal separator is comma,
the chosen value in the linked cell is written with a dot and so I cannot use
the value as as a source value for calculation. Why is this happening? Why
does the combobox change the decimal separator? The weirdest thing about this
is that sometimes the combobox has returned the right value with a comma as
decimal separator.

Can anyone help with this?

Thanks in advance,
Erkka



All times are GMT +1. The time now is 02:54 AM.

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