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

Cells Collection Object

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.