Share via


Cells.Merge Method (Word)

Merges the specified table cells with one another. The result is a single table cell.

Syntax

expression .Merge

expression Required. A variable that represents a Cells collection.

Example

This example merges the cells in row one of the selection into a single cell and then applies shading to the row.

If Selection.Information(wdWithInTable) = True Then 
 Set myrow = Selection.Rows(1) 
 myrow.Cells.Merge 
 myrow.Shading.Texture = wdTexture10Percent 
End If

See Also

Concepts

Cells Object Members

Cells Collection Object