Upravit

Sdílet prostřednictvím


Table.ApplyStyleLastRow property (Word)

True for Microsoft Word to apply last-row formatting to the last row of the specified table. Read/write Boolean.

Syntax

expression. ApplyStyleLastRow

expression An expression that returns a 'Table' object.

Remarks

The specified table style must contain last-row formatting to apply this formatting to a table.

Example

This example formats the second table in the active document with the table style "Table Style 1" and removes formatting for the first and last rows and the first and last columns. This example assumes that a table style named "Table Style 1" exists and that it contains last-row formatting.

Sub TableStyles() 
 With ActiveDocument.Tables(2) 
 .Style = "Table Style 1" 
 .ApplyStyleFirstColumn = False 
 .ApplyStyleHeadingRows = False 
 .ApplyStyleLastColumn = False 
 .ApplyStyleLastRow = False 
 End With 
End Sub

See also

Table Object

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.