How do you define the log base in VBA?
That was your question as I read your post and my answer was based on it.

Alf