Table.PreferredWidth Property
Word Developer Reference |
Returns or sets the preferred width (in points or as a percentage of the window width) for the specified table. Read/write Single.
Syntax
expression.PreferredWidth
expression An expression that represents a Table object.
Remarks
If the PreferredWidthType property is set to wdPreferredWidthPoints, the PreferredWidth property returns or sets the width in points. If the PreferredWidthType property is set to wdPreferredWidthPercent, the PreferredWidth property returns or sets the width as a percentage of the window width.
Example
This example sets Microsoft Word to accept preferred widths as a percentage of window width, and then sets the preferred width of the first table in the document to 50% of the window width.
Visual Basic for Applications |
---|
|
See Also