In vba the log base is defined as e. In Excel you can choose the log base for any number i.e. LOG (number;base)

You should be able to select log base in vba using
Application.WorksheetFunction.Log(number, base)
Untested as I'm using my Android to post this.

Alf