>>Should it be For lnCompteur=1 To tnLength? I'm going to use "AddSpaces" name for the function. Also, do you have Option Explicit? Why you don't declare variables? And I believe, we have space function in VB?
>
>You may make adjustments as required.
The Space function as you posted doesn't make sense to me. But thanks a lot for the code, yes, I'm going to the idea of adding leading spaces.
If it's not broken, fix it until it is.
My Blog