Applies to |
|---|
The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office. Project type Microsoft Office version For more information, see Features Available by Application and Project Type. |
In a Microsoft Office Word table, the cells are organized into rows and columns. You can use the Add method of the Rows object to add rows to the table and the Add method of the Columns object to add columns.
Document-Level Customization Examples
The following code examples can be used in a document-level customization. To use these examples, run them from the ThisDocument class in your project. These examples assume that the document associated with your customization already has at least one table.
To add a row to a table
To add a column to a table
Application-Level Add-in Examples
The following code examples can be used in an application-level add-in. To use the examples, run them from the ThisAddIn class in your project. These examples assume that the active document already has at least one table.
To add a row to a table
To add a column to a table
Tasks