Using VBA to detect which decimal sign the computer is using

前端 未结 6 1403
你的背包
你的背包 2020-11-30 12:54

Is it possible to use VBA to detect which decimal sign is being used on the computer?

I have a macro script that adds a conditional formatting to an excel sheet. The

6条回答
  •  渐次进展
    2020-11-30 13:15

    You can use the DecimalSeparator property.

    Application.DecimalSeparator then returns the decimal separator defined by the locale that excel is being run with.

    On a side note: It's advisable, even though it's possible, to not change this and instead leverage it to your needs.

提交回复
热议问题