Presentation.Merge method (PowerPoint)

Merges the changes in one presentation with another.

Syntax

expression.Merge (Path)

expression A variable that represents a Presentation object.

Parameters

Name Required/Optional Data type Description
Path Required String The path, including filename, of the presentation to merge changes with.
Path Required String

Return value

VOID

Example

The following code sample merges the active presentation with a presentation saved to the user's desktop.

Sub MergePresentations()
    Dim userName As String
    Dim otherPres As String

    ActivePresentation.Merge("C:\Users\? & username & ?\Desktop\" & otherPres)
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.