Expand Minimize
This topic has not yet been rated - Rate this topic

Document.DefaultTableStyle Property (Word)

Published: July 16, 2012

Returns a Variant that represents the table style that is applied to all newly created tables in a document. Read-only.

expression .DefaultTableStyle

expression An expression that returns a Document object.

This example checks to see if the default table style used in the active document is named "Table Normal" and, if it is, changes the default table style to "TableStyle1." This example assumes that you have a table style named "TableStyle1."

Sub TableDefaultStyle() 
 With ActiveDocument 
 If .DefaultTableStyle = "Table Normal" Then 
 .SetDefaultTableStyle _ 
 Style:="TableStyle1", SetInTemplate:=True 
 End If 
 End With 
End Sub

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.