Hello Dave,
The definition of Num Format Symbols is in Office Open XML Part4 - Markup
Language Reference.pdf, Page 2135. A table there explains each num symbol
in detail. According to its description, up to four sections of format
codes can be speicified. The format codes, separated by semicolons, define
the formats for positive numbers, negative numbers, zero values, and text,
in that order. If only two sections are specified, the first is used for
positive numbers and zeros, and the second is used for negative numbers. If
only one section is specified, it is used for all numbers.
In the Text and spacing section of the spec (P 2136), it says:
To display both text and numbers in a cell, enclose the text characters in
double quotation marks (" ") or precede a single character with a backslash
(\).
That is to say, "$" in your formatCode will be interpreted as a text
In the Specify colors section of the spec (P2139), it says:
To set the text color for a section of the format, type the name of one of
the following eight colors in square brackets in the section. The color
code must be the first item in the section.
Therefore, the [Red] in your formatCode could set the negative value
([Red]"$"#,##0.00") as Red color.
Please let me know if you have any other concerns, or need anything else.
Sincerely,
Jialiang Ge (
[email protected], remove ¡®online.¡¯)
Microsoft Online Community Support
==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document:
http://blogs.msdn.com/msdnts/pages/postingAlias.aspx
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box ¡°Tools/Options/Read: Get 300 headers at a time¡±
to see your reply promptly.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided ¡°AS IS¡± with no warranties, and confers no
rights.