Muokkaa

Jaa


Selection.SelectColumn method (Word)

Selects the column that contains the insertion point, or selects all columns that contain the selection.

Syntax

expression. SelectColumn

expression Required. A variable that represents a Selection object.

Remarks

If the selection isn't in a table, an error occurs.

Example

This example collapses the selection to the ending point and then selects the column that contains the insertion point.

Selection.Collapse Direction:=wdCollapseEnd 
If Selection.Information(wdWithInTable) = True Then 
 Selection.SelectColumn 
End If

See also

Selection 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.