WorksheetFunction.Base (Excel)

Converts a number into a text representation with the given radix (base).

Base (Arg1, Arg2, Arg3)


Dim dblArg1 As Double: dblArg1 = 
Dim dblArg2 As Double: dblArg2 = 
Dim strBase As String
strBase = WorksheetFunction.Base(Arg1:=dblArg1, Arg2:=dblArg2)

Arguments

Arg1, Arg2, Arg3

Arg1 (Double) - The number that you want to convert.

Arg2 (Double) - The base radix that you want to convert the number into.

Arg3 - The minimum length of the returned string. If omitted, leading zeros are not added