wdStartOfRangeColumnNumber returns the number of the column in which the beginning of the selection or range falls. : Document Selection « Word « VBA / Excel / Access / Word






wdStartOfRangeColumnNumber returns the number of the column in which the beginning of the selection or range falls.

 
Sub selectRange()
    Selection.Tables(1).Columns(Selection.Information (wdStartOfRangeColumnNumber)).Select
End Sub     

 








Related examples in the same category

1.Using a variable named curSel to restore the selection it collapses, unless collapsing the selection leaves the selection at an end-of-row marker
2.Move Selection left
3.checks the number of rows and columns in the selection.