This documentation is archived and is not being maintained.

Working with Tables

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

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • Word 2003

  • Word 2007

For more information, see Features Available by Application and Project Type.

The topics in this section provide step-by-step procedures and code examples for using the object model of Microsoft Office Word to work with tables in Visual Studio Tools for Office projects. In some cases, the ways that you perform these tasks in application-level add-ins is different from the ways that you perform them in document-level customizations.



Create a table, apply a style, and access the table in code.

How to: Create Word Tables

Create a table, format it, and insert data into the cells.

How to: Populate Word Tables with Document Properties

Add a row or column to a table.

How to: Add Rows and Columns to Word Tables

Add text to a cell and format it.

How to: Add Text and Formatting to Cells in Word Tables