Document.DefaultTableStyle property (Word)
Returns a Variant that represents the table style that is applied to all newly created tables in a document. Read-only.
Syntax
expression. DefaultTableStyle
expression An expression that returns a Document object.
Example
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin