TableDeleteCells

Syntax

TableDeleteCells .ShiftCells = number

Remarks

Deletes the selected cells. If the insertion point or selection is not within a table, an error occurs.

Argument

Explanation

.ShiftCells

Sets the direction to shift the remaining cells:

0 (zero) or omitted Shift the cells left.

1 Shift the cells up.

2 Delete the entire row.

3 Delete the entire column.


Example

This example deletes the first cell in a table if the table contains more than two rows:


If SelInfo(15) > 2 Then
    TableSelectTable
    StartOfRow
    TableDeleteCells
End If

See Also

SelInfo(), TableDeleteColumn, TableDeleteRow