Compartilhar via


Cells.Merge Method

Word Developer Reference

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.

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

See Also