Partager via


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

Concepts

Presentation Object

Presentation Object Members

Cell Object

Cell Object Members