Tables.Add (Word)

Returns a Table object that represents a new, blank table added to a document.

Syntax : expression.Add (Range, NumRows, NumColumns, DefaultTableBehavior, AutoFitBehavior)

Set myRange = ActiveDocument.Range(0, 0) 
ActiveDocument.Tables.Add Range:=myRange, NumRows:=3, NumColumns:=4


The following arguments are required:

Range (Range) - The range where you want the table to appear. The table replaces the range, if the range isn't collapsed.

NumRows (Long) - The number of rows you want to include in the table.

NumColumns (Long) - The number of columns you want to include in the table.

The following arguments are optional

DefaultTableBehavior (WdDefaultTableBehavior) - Sets a value that specifies whether Microsoft Word automatically resizes cells in tables to fit the cells' contents (AutoFit). Can be either of the following constants: wdWord8TableBehavior (AutoFit disabled) or wdWord9TableBehavior (AutoFit enabled). The default constant is wdWord8TableBehavior.

Possible Values are wdWord8TableBehavior - Disables AutoFit. Default, wdWord9TableBehavior - Enables AutoFit.

AutoFitBehavior (WdAutoFitBehavior) - Sets the AutoFit rules for how Word sizes tables. Can be one of the WdAutoFitBehavior constants.

Possible Values are wdAutoFitContent - The table is automatically sized to fit the content contained in the table, wdAutoFitFixed - The table is set to a fixed size, regardless of the content, and is not automatically sized, wdAutoFitWindow - The table is automatically sized to the width of the active window.