AutoFitBehavior Method Example

This example sets the AutoFit behavior for the first table in the active document to automatically resize based on the width of the document window.

ActiveDocument.Tables(1).AutoFitBehavior _
    wdAutoFitWindow