2. Styles & Formatting Concepts
• Themes
– Affect color, font, & effects on shapes (e.g. chart)
– Accent 1, 2, 3; Light & Dark 1, 2; Hyperlink; etc
• Cell Styles
– A collection of formatting
– Can reference a theme, or
– Can be direct, unchanging formatting
• Table & PivotTable Styles
– Tables have 13 regions that can be formatted (header row, totals row)
– PivotTables have an additional 15 areas
– All built-in styles reference themes
– Custom styles can reference themes, or not
• Direct Formatting
– Color & Font choices can reference a theme, or not
– Includes borders, number formats, etc
3. Style & Formatting Example
• Left set of numbers have direct & themed formatting
• Table has a table style applied
• PivotTable has a table style applied
4. Vary The Theme
• Since all colors are specified as ‘theme’ colors, they change when a
different theme is selected
• Cells with non-theme colors specified wouldn’t change color with theme
changes.
5. In The Package
Sheet1
• Workbook owns the relationships
• Cells reference style definitions in styles.xml
• Various formatting elements reference theme
elements in themes.xml
Workbook
Styles Themes
6. Styles.xml
• Number Formats
• Fonts
• Fills
• Borders
• Master Records
styles
formatting
• Cell Styles
• Diff Master Records
• Custom Table Styles
9. Default & Custom Styles
• Default styles are not saved on disk
– Number formats (referenced by integer Id)
– Table Styles (referenced by name)
– PivotTable Styles (referenced by name)
• Custom styles are saved on disk
10. Disclaimer
This presentation is for informational purposes only, and should
not be relied upon as a substitute or replacement for Microsoft
formal file format documentation, which is available at the
following website: https://msdn.microsoft.com/en-
us/library/cc313118(v=office.12).aspx. Any views or opinions
presented in this material are solely those of the author and do
not necessarily represent those of Microsoft. Microsoft
disclaims all liability for mistakes or inaccuracies in this
presentation.