TableStyles interface

Office 2013 and later

Represents styles that can be applied to a table.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

No code example is currently available or this language may not be supported.

Table styles provide a way to format an entire table or Pivot Table. Table styles replaces the existing auto format feature for formatting an entire table.

Table styles differ from auto format in the following ways:

  • You can create and re-use your own custom table styles.

  • Table styles work with themes.

  • Changing the document theme's color scheme and/or font scheme will change the look of the built-in table styles.

  • Table styles can reapply styles to objects like PivotTables and tables as the object changes. The tables will remember the style applied to them and will re-display appropriately when cells are added, removed, hidden, and shown.

  • Table styles have a visual user interface in the Ribbon.

Show: