Compartilhar via


IScenarios.Add Method

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

Syntax

'Declaration
Function Add ( _
    Name As String, _
    ChangingCells As Object, _
    Values As Object, _
    Comment As Object, _
    Locked As Object, _
    Hidden As Object _
) As Scenario
'Usage
Dim instance As IScenarios
Dim Name As String
Dim ChangingCells As Object
Dim Values As Object
Dim Comment As Object
Dim Locked As Object
Dim Hidden As Object
Dim returnValue As Scenario

returnValue = instance.Add(Name, ChangingCells, _
    Values, Comment, Locked, Hidden)
Scenario Add(
    string Name,
    Object ChangingCells,
    Object Values,
    Object Comment,
    Object Locked,
    Object Hidden
)

Parameters

Return Value

Type: Microsoft.Office.Interop.Excel.Scenario

See Also

Reference

IScenarios Interface

IScenarios Members

Microsoft.Office.Interop.Excel Namespace