Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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.