StartOfColumn, StartOfColumn()

Syntax

StartOfColumn [Select]

StartOfColumn([Select])

Remarks

The StartOfColumn statement moves the insertion point or extends the selection (if Select is nonzero) to the top of the table column containing the insertion point or selection. If the selection extends over more than one column, the insertion point moves to the top of the column containing the end of the selection. If the insertion point or selection is not in a table, an error occurs.

Note

If the first row in the table does not have a cell that corresponds to the column that contains the current selection — for example, if you have deleted or merged cells in the first row — StartOfColumn moves the insertion point to the end of the first row in the table.

The StartOfColumn() function behaves the same as the statement and also returns one of the following values.

Value

Explanation

0 (zero)

If the insertion point was not moved or the selection was not extended (that is, if it was already at the top of the column)

–1

If the insertion point was moved or the selection was extended


If the insertion point is not in a table, StartOfColumn and StartOfColumn() generate an error.

Example

This example moves the insertion point from anywhere in the table to the end of the first row:


TableSelectRow
StartOfColumn

See Also

EndOfColumn, StartOfRow