PreferredWidthType Property
ConditionalStyle
WdPreferredWidthType can be one of these WdPreferredWidthType constants. |
wdPreferredWidthAuto |
wdPreferredWidthPercent |
wdPreferredWidthPoints |
expression.PreferredWidthType
expression Required. An expression that returns one of the above objects.
Example
This example sets Microsoft Word to accept widths as a percentage of window width, and then it sets the width of the first table in the document to 50% of the window width.
With ActiveDocument.Tables(1)
.PreferredWidthType = wdPreferredWidthPercent
.PreferredWidth = 50
End With
Applies to | Cell Object | Cells Collection Object | Column Object | Columns Collection Object | Table Object
See Also | PreferredWidth Property