My first thought was to see how to implement my Currency styles with run-time variable symbols.
I recorded a couple of macros to modify my user-style Currency0:
Code: Select all
ActiveWorkbook.Styles("Currency0").NumberFormat = "[$£-809]#,##0"
Code: Select all
ActiveWorkbook.Styles("Currency0").NumberFormat = "[$Rp-421]#,##0"
Please,
(1) Can anyone explain to me the mysterious offset values of -809 and -421?
(2) Can anyone explain to me why I don't see Indian Rupees in the (Format, Style, Modify, Format, Number) Symbol drop-down list? (I am in Excel 2000).
FWIW using
Code: Select all
ActiveWorkbook.Styles("Currency0").NumberFormat = "[$GPC-421]#,##0"
Code: Select all
ActiveWorkbook.Styles("Currency0").NumberFormat = "[$GPC-809]#,##0"
Code: Select all
ActiveWorkbook.Styles("Currency0").NumberFormat = "[$§]#,##0"
(a) the offset-thingy seems irrelevant (I tried removing the "-809" and the "-421")
(b) the $ symbol seems essential - some sort of escape character
(c) for practical purposes, any string/symbol can be implemented after the $ symbol.