CellRange.Merge method (Publisher)
Merges the specified table cells with one another. The result is a single table cell.
Syntax
expression.Merge
expression A variable that represents a CellRange object.
Example
This example merges the first two cells in the first two rows of the specified table.
Sub MergeCells()
ActiveDocument.Pages(1).Shapes(2).Table _
.Cells(StartRow:=1, StartColumn:=1, _
EndRow:=2, EndColumn:=2).Merge
End Sub
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.