Share via


AllowAutoFit Property

AllowAutoFit Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Allows Microsoft Word to automatically resize cells in a table to fit their contents. Read/write Boolean.

expression.AllowAutoFit

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This example sets the first table in the active document to automatically resize based on its contents.

  Sub AllowFit()
    ActiveDocument.Tables(1).AllowAutoFit = True
End Sub