Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
ApplyStyleLastColumn Property
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
True for Microsoft Word to apply last-column formatting to the last column of the specified table. Read/write Boolean.
expression.ApplyStyleLastColumn
expression Required. An expression that returns a Table object.
Remarks
The specified table style must contain last-column formatting in order 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-column formatting.
Sub TableStyles()
With ActiveDocument.Tables(2)
.Style = "Table Style 1"
.ApplyStyleFirstColumn = False
.ApplyStyleHeadingRows = False
.ApplyStyleLastColumn = False
.ApplyStyleLastRow = False
End With
End Sub