Columns Collection Object
Word Developer Reference |
A collection of Column objects that represent the columns in a table.
Remarks
Use the Columns property of a Range, Selection, or Table object to return a Columns collection. The following example displays the number of Column objects in the Columns collection for the first table in the active document.
Visual Basic for Applications |
---|
|
The following example creates a table with six columns and three rows and then formats each column with a progressively larger (darker) shading percentage.
Visual Basic for Applications |
---|
|
Use the Add method to add a column to a table. The following example adds a column to the first table in the active document, and then it makes the column widths equal.
Visual Basic for Applications |
---|
|
Use Columns(Index), where Index is the index number, to return a single Column object. The index number represents the position of the column in the Columns collection (counting from left to right). The following example selects the first column in the first table.
Visual Basic for Applications |
---|
|
See Also