Share via


Series.Formula Property

Returns or sets the object's formula in A1-style notation and in the language of the macro. Read/write.

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

Syntax

'Declaration
Property Formula As String
    Get
    Set
'Usage
Dim instance As Series
Dim value As String

value = instance.Formula

instance.Formula = value
string Formula { get; set; }

Property Value

Type: System.String

Remarks

This property is not available for OLAP data sources.

If the object contains a constant, this property returns the constant. If the object is empty, this property returns an empty string. If the object contains a formula, this property returns the formula as a string in the same format that would be displayed in the formula bar (including the equal sign).

If the range is a one- or two-dimensional range, you can set the formula to an array of the same dimensions. Similarly, you can put the formula into an array.

See Also

Reference

Series Interface

Series Members

Microsoft.Office.Interop.PowerPoint Namespace