WorksheetFunction.Log (Excel)

Returns the logarithm of a number to the base that you specify.

Log (Arg1, Arg2)


Dim dblArg1 As Double: dblArg1 = 
Dim dblLog As Double
dblLog = WorksheetFunction.Log(Arg1:=dblArg1)

Arguments

Arg1, Arg2

Arg1 (Double) - Number - the positive real number for which you want the logarithm.

Arg2 - Base - the base of the logarithm. If base is omitted, it is assumed to be 10