Cell.Merge method (PowerPoint)
Merges one table cell with another. The result is a single table cell.
Syntax
expression.Merge (MergeTo)
expression A variable that represents a Cell object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
MergeTo | Required | Cell | The Cell object to be merged with. |
Remarks
For the MergeTo parameter, use the syntax .Cell(row, column)
.
This method returns an error if the file name cannot be opened, or the presentation has a baseline.
Example
This example merges the first two cells of row one in the specified table.
With ActivePresentation.Slides(2).Shapes(5).Table
.Cell(1, 1).Merge MergeTo:=.Cell(1, 2)
End With
See also
Presentation Object Cell 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.