Syntax
EndOfRow [Select]
EndOfRow ([Select])
Remarks
The EndOfRow statement moves the insertion point or extends the selection (if Select is nonzero) to the last cell of the table row containing the insertion point or selection. If the selection extends over more than one row, the insertion point moves or the selection is extended to the last cell of the last row in the selection. If the insertion point or selection is not in a table, an error occurs.
The EndOfRow() 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 end of the row) | |
–1 | If the insertion point was moved or the selection was extended |
Example
This example deletes the selected cells or the cell containing the insertion point and all cells to the right:
EndOfRow 1 TableDeleteCells
See Also
EndOfColumn, EndOfLine, StartOfRow