Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a '₹' into a cell using excel vba (format a cell with a Currency symbol '₹' )

Tags:

excel

vba

Hi I am trying to format a cell using below code and I am expecting to set the currency symbol of that cell as '₹' Where i am getting INR values.

But when I add below VBA code, it remove the '₹' with a '?'

Selection.NumberFormat = "[$₹-hi-IN]#,##0.00"

VBA not able to recognise this symbol, Is it possible get this code working....

Thanks in Advance

like image 824
dhanya Avatar asked Nov 15 '25 10:11

dhanya


1 Answers

Selection.NumberFormat = "[$" + ChrW(&H20B9) + "-hi-IN]#,##0.00"
like image 184
sarh Avatar answered Nov 17 '25 10:11

sarh



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!