[英]How to add a '₹' into a cell using excel vba (format a cell with a Currency symbol '₹' )
嗨,我正在尝试使用下面的代码格式化一个单元格,我希望将该单元格的货币符号设置为“₹”,我在那里获得 INR 值。
但是当我添加下面的 VBA 代码时,它会删除带有 '?' 的 '₹'。
Selection.NumberFormat = "[$₹-hi-IN]#,##0.00"
VBA 无法识别此符号,是否可以使此代码正常工作....
提前致谢
Selection.NumberFormat = "[$" + ChrW(&H20B9) + "-hi-IN]#,##0.00"
'simple currency
Selection.NumberFormat = ChrW(8377) & "#,##0.00"
'accounting format with red bracketed negatives
Selection.NumberFormat = "_(" & ChrW(8377) & "* #,##0.00_);[red]_(" & ChrW(8377) & "* (#,##0.00);_(" & ChrW(8377) & "* ""-""??_);_(@_)"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.