Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (30 sloc) 1022 Bytes
title keywords f1_keywords ms.prod api_name ms.assetid ms.date localization_priority
Selection.SelectColumn method (Word)
vbawd10.chm158663172
vbawd10.chm158663172
word
Word.Selection.SelectColumn
a8e742df-0a8e-739d-e71a-da2536b6abec
06/08/2017
Normal

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

[!includeSupport and feedback]

You can’t perform that action at this time.