Partager via


TableStyles Object (Excel)

Represents styles that can be applied to a table.

Version Information

Version Added: Excel 2007

Remarks

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 reuse custom table styles.

  • Table styles work with themes.

  • Changing the document theme 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.

See Also

Concepts

Excel Object Model Reference

TableStyles Object Members