Vba: display decimals with point and not coma

前端 未结 3 368
面向向阳花
面向向阳花 2021-01-21 15:11

I would like to have all numbers in a macro displayed with point and not coma

For Instance This display \"0,03\" but I would like \"0.03\":

Dim MyNumber          


        
3条回答
  •  终归单人心
    2021-01-21 15:53

    Most likely your Excel settings are causing a conflict.

    1.    On the File tab, click the Options button
    2.    Click the Advanced tab
    3.    Clear/Uncheck the "Use system separators" option.
    

    Then try your code.

提交回复
热议问题