Merge Method

Microsoft PowerPoint Visual Basic

ShowMerge method as it applies to the Cell object.

Merges one table cell with another. The result is a single table cell.

expression.Merge(MergeTo)

expression    Required. An expression that returns a Cell object.

MergeTo   Required Cell object. Cell object to be merged with. Use the syntax .Cell(row   , column   ).

ShowMerge method as it applies to the Presentation object.

Merges one presentation into another presentation.

expression.Merge(Path)

expression    Required. An expression that returns one of the above objects.

Path   Required String. The full path of a file to merge with this presentation.

Remarks

This method returns an error if the filename 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