AutoInsert Property
Applies To
AutoCaption object.
Description
True if a caption is automatically added when the item is inserted into a document. Read/write Boolean.
See Also
AutoCaptions property, CancelAutoInsert method.
Example
This example enables Word to add captions to tables automatically. Then the example collapses the selection to an insertion point, and inserts a table. A caption is automatically added to the new table.
AutoCaptions("Microsoft Word Table").AutoInsert = True
Selection.Collapse Direction:=wdCollapseStart
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, _
NumColumns:=2