WorksheetFunction.Power Method

Returns the result of a number raised to a power.

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

Syntax

'Declaration
Function Power ( _
    Arg1 As Double, _
    Arg2 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Double
Dim returnValue As Double

returnValue = instance.Power(Arg1, Arg2)
double Power(
    double Arg1,
    double Arg2
)

Parameters

  • Arg1
    Type: System.Double

    Number - the base number. It can be any real number.

  • Arg2
    Type: System.Double

    Power - the exponent to which the base number is raised.

Return Value

Type: System.Double

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace