Column Object
Word Developer Reference |
Represents a single table column. The Column object is a member of the Columns collection. The Columns collection includes all the columns in a table, selection, or range.
Remarks
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 column one in table one in the active document.
Visual Basic for Applications |
---|
|
Use the Column property with a Cell object to return a Column object. The following example deletes the text in cell one, inserts new text, and then sorts the entire column.
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 |
---|
|
Remarks
Use the Information property with a Selection object to return the current column number. The following example selects the current column and then displays the column number in a message box.
Visual Basic for Applications |
---|
|
See Also