Document.Merge(String, Object, Object, Object, Object) Method

Definition

Merges the changes marked with revision marks from one document to another.

public void Merge (string FileName, ref object MergeTarget, ref object DetectFormatChanges, ref object UseFormattingFrom, ref object AddToRecentFiles);
abstract member Merge : string * obj * obj * obj * obj -> unit
Public Sub Merge (FileName As String, Optional ByRef MergeTarget As Object, Optional ByRef DetectFormatChanges As Object, Optional ByRef UseFormattingFrom As Object, Optional ByRef AddToRecentFiles As Object)

Parameters

FileName
String

The name of the new file that includes the merged contents.

MergeTarget
Object

One of the WdMergeTarget values.

DetectFormatChanges
Object

true to detect format changes in the document; otherwise, false.

UseFormattingFrom
Object

One of the WdUseFormattingFrom values.

AddToRecentFiles
Object

true to add to the recent files list; otherwise, false.

Remarks

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to