Class Table (PowerPoint VBA)

The class Table represents a table shape on a slide. The Table object is a member of the Shapes collection. The Table object contains the Columns collection and the Rows collection.

Class Shape gives access to class Table.


Dim tbl as Table
Set tbl = ActiveWindow.RangeFromPoint.Table

Methods

ApplyStyle - Applies a table style to the specified table.

Cell - Returns a Cell object that represents a cell in a table.

ScaleProportionally - Scales all cell heights and widths, font sizes, and internal margins in the table by a specified proportion.

Properties

AlternativeText returns or sets the alternative text associated with a shape in a Web presentation.

Background returns the TableBackground object associated with the specified table.

Columns returns a Columns collection that represents all the columns in a table.

FirstCol determines whether to display special formatting for the first column of the specified table.

FirstRow determine whether to display special formatting for the first row of the specified table.

HorizBanding determines whether to display banded rows, in which even rows are formatted differently from odd rows.

LastCol determines whether to display special formatting for the last column of the specified table.

LastRow determines whether to display special formatting for the last row of the specified table.

Rows returns a Rows collection that represents all the rows in a table.

Style returns a TableStyle object that contains information about the specified table's current table style.

TableDirection returns or sets the direction in which the table cells are ordered.

Title returns or sets the title of the Table object.

VertBanding determines whether to display banded columns, in which even columns are formatted differently from odd columns.

Cell - Represents a table cell. The Cell object is a member of the CellRange collection. The CellRange collection represents all the cells in the specified column or row. To use the CellRange collection, use the Cells keyword.

Columns - A collection of Column objects that represent the columns in a table.

Rows - A collection of Row objects that represent the rows in a table.

TableBackground - Represents the background associated with a Table object.

TableStyle - Represents the current table style.