Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Splits a range of table cells.
Syntax
expression.Split (NumRows, NumColumns, MergeBeforeSplit)
expression Required. A variable that represents a 'Cells' collection.
Parameters
| 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. |
Example
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
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.