AutoFormatType Property
Applies To
Table object.
Description
Returns the type of automatic formatting that's been applied to the specified table. Read-only Long.
Can be one of the following WdTableFormat constants:
| - wdTableFormatContemporary
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
- wdTableFormatProfessional
| |
| |
| |
Note Use the AutoFormat method to apply automatic formatting to a table.
See Also
AutoFormat method, UpdateAutoFormat method.
Example
This example formats the first table in the active document to use the Classic 1 AutoFormat if the current format is Simple 1, Simple 2, or Simple 3.
If ActiveDocument.Tables.Count >= 1 Then
If ActiveDocument.Tables(1).AutoFormatType <= 3 Then
ActiveDocument.Tables(1).AutoFormat Format:=wdTableFormatClassic1
End If
End If