Share via


SparklineGroups.Add Method

Creates a new sparkline group and returns a SparklineGroup object.

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

Syntax

'Declaration
Function Add ( _
    Type As XlSparkType, _
    SourceData As String _
) As SparklineGroup
'Usage
Dim instance As SparklineGroups
Dim Type As XlSparkType
Dim SourceData As String
Dim returnValue As SparklineGroup

returnValue = instance.Add(Type, SourceData)
SparklineGroup Add(
    XlSparkType Type,
    string SourceData
)

Parameters

  • SourceData
    Type: System.String

    Represents the range to use to create the sparkline.

Return Value

Type: Microsoft.Office.Interop.Excel.SparklineGroup
Returns SparklineGroup.

See Also

Reference

SparklineGroups Interface

SparklineGroups Members

Microsoft.Office.Interop.Excel Namespace