Excel 在显式 numberFormat 转换后设置了错误的货币
Excel sets wrong currency after explicit numberFormat conversion
我有以下几行代码:
With new_pivot_table.PivotFields( _
"Count of Weighted Parameter")
.Caption = "Sum of Weighted Parameter"
.Function = xlSum
.NumberFormat = "$ #,##0.00"
End With
但是我的 Excel sheet 以欧元显示货币。为什么 Excel 显示 € 而不是 $?货币是否取决于我当前所在的位置(即由任何 Windows 服务自动设置)还是我的语法错误?如何强制此列显示在 $$ 中?
提前致谢。
我找到了这个将货币更改为欧元的小教程。我想这是换成美元的相同方法。
http://www.howtogeek.com/240216/how-to-change-windows-default-currency-from-dollars-to-euros/
按照以下步骤操作(仅限 Windows):
- 搜索"Change the way currency is displayed"
- 单击 "Additional settings"。
- Select "Currency" 选项卡。
- Select 您想要在 "Currency symbol" 列表中的货币符号。
- 应用更改。
我有以下几行代码:
With new_pivot_table.PivotFields( _
"Count of Weighted Parameter")
.Caption = "Sum of Weighted Parameter"
.Function = xlSum
.NumberFormat = "$ #,##0.00"
End With
但是我的 Excel sheet 以欧元显示货币。为什么 Excel 显示 € 而不是 $?货币是否取决于我当前所在的位置(即由任何 Windows 服务自动设置)还是我的语法错误?如何强制此列显示在 $$ 中?
提前致谢。
我找到了这个将货币更改为欧元的小教程。我想这是换成美元的相同方法。
http://www.howtogeek.com/240216/how-to-change-windows-default-currency-from-dollars-to-euros/
按照以下步骤操作(仅限 Windows):
- 搜索"Change the way currency is displayed"
- 单击 "Additional settings"。
- Select "Currency" 选项卡。
- Select 您想要在 "Currency symbol" 列表中的货币符号。
- 应用更改。