TableObject Interface


Represents a worksheet table built from data returned from a PowerPivot model.

public interface class TableObject
public interface TableObject
Public Interface TableObject



Specifies if the column widths are automatically adjusted for the best fit each time you refresh the specified query table. The default value is True. Boolean (bool in C#) Read/Write


Returns an Application object that represents the Excel application. Read-only.


Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Integer (int in C#).


Returns the cell in the upper-left corner of the query table destination range (the range where the resulting query table will be placed). The destination range must be on the worksheet that contains the TableObject object. Range. Read-only


True if the user can edit the specified query table. False if the user can only refresh the query table. Boolean (bool in C#) Read/Write


Specifies if the query table can be refreshed by the user. Boolean (bool in C#) Read/Write


Specifies if the number of rows returned by the last use of the Refresh method is greater than the number of rows available on the worksheet. Boolean (bool in C#) Read-only


Returns a ListObject object for the TableObject object. Read-only


Returns an Object that represents the parent object of the specified TableObject object. Read-only.


Specifies if column sorting, filtering, and layout information is preserved whenever a query table is refreshed. The default value is False. Boolean (bool in C#) Read/Write


True if any formatting common to the first five rows of data are applied to new rows of data in the query table. Unused cells aren’t formatted. The property is False if the last AutoFormat applied to the query table is applied to new rows of data. The default value is True. Boolean (bool in C#) Read/Write


Returns or sets the way rows on the specified worksheet are added or deleted to accommodate the number of rows in a record set returned by a query. XlCellInsertionMode Read/Write


Returns a Range object that represents the area of the worksheet occupied by the specified query table. Read-only


Specifies if row numbers are added as the first column of the specified query table. Boolean (bool in C#) Read/Write


Returns the WorkbookConnection used by the TableObject for connecting to the model. The ModelConnection property on the WorkbookConnection object can then be used to get to and edit DAX etc. Read-only



Deletes the TableObject object.


This method updates the TableObject object.

Applies to