WorksheetFunction.Power (Excel)

Returns the result of a number raised to a power.

The "^" operator can be used instead of Power to indicate to what power the base number is to be raised, such as in 5^2.

Power (Arg1, Arg2)


Dim dblArg1 As Double: dblArg1 = 
Dim dblArg2 As Double: dblArg2 = 
Dim dblPower As Double
dblPower = WorksheetFunction.Power(Arg1:=dblArg1, Arg2:=dblArg2)

Arguments

Arg1, Arg2

Arg1 (Double) - Number - the base number. It can be any real number.

Arg2 (Double) - Power - the exponent to which the base number is raised.