title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Cells.Split method (Word) |
vbawd10.chm155844813 |
|
|
ed0b2594-a328-20d9-b352-5a59b8ef9d3a |
06/08/2017 |
medium |
Splits a range of table cells.
expression.Split (NumRows, NumColumns, MergeBeforeSplit)
expression Required. A variable that represents a 'Cells' collection.
Name | Required/Optional | Data type | Description |
---|---|---|---|
NumRows | Optional | Variant | The number of rows that the cell or group of cells is to be split into. |
NumColumns | Optional | Variant | The number of columns that the cell or group of cells is to be split into. |
MergeBeforeSplit | Optional | Variant | True to merge the cells with one another before splitting them. |
This example merges the selected cells into a single cell and then splits the cell into three cells in the same row.
If Selection.Information(wdWithInTable) = True Then
Selection.Cells.Split NumRows:=1, NumColumns:=3, _
MergeBeforeSplit:= True
End If
[!includeSupport and feedback]