Skip to content

Latest commit

 

History

History
52 lines (33 loc) · 1.28 KB

Word.Cells.Split.md

File metadata and controls

52 lines (33 loc) · 1.28 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Cells.Split method (Word)
vbawd10.chm155844813
vbawd10.chm155844813
Word.Cells.Split
ed0b2594-a328-20d9-b352-5a59b8ef9d3a
06/08/2017
medium

Cells.Split method (Word)

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

Cells Collection Object

[!includeSupport and feedback]