Share via


Scenarios.Merge Method

Merges the scenarios from another sheet into the Scenarios collection.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Merge ( _
    Source As Object _
) As Object
'Usage
Dim instance As Scenarios
Dim Source As Object
Dim returnValue As Object

returnValue = instance.Merge(Source)
Object Merge(
    Object Source
)

Parameters

  • Source
    Type: System.Object

    Required Object. The name of the sheet that contains scenarios to be merged, or a Worksheet object that represents that sheet.

Return Value

Type: System.Object

Remarks

The value of a merged range is specified in the cell of the range's upper-left corner.

See Also

Reference

Scenarios Interface

Scenarios Members

Microsoft.Office.Interop.Excel Namespace