Cell.Delete Method
Word Developer Reference |
Deletes a table cell or cells and optionally controls how the remaining cells are shifted.
Syntax
expression.Delete(ShiftCells)
expression Required. A variable that represents a Cell object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
ShiftCells | Optional | Variant | The direction in which the remaining cells are to be shifted. Can be any WdDeleteCells constant. If omitted, cells to the right of the last deleted cell are shifted left. |
Example
This example deletes the first cell in the first table of the active document.
Visual Basic for Applications |
---|
|
See Also