Add leading Zeros to number

  • Thread starter Thread starter jack
  • Start date Start date
J

jack

Hello,

I have a number that is 6 places long.

I would like:

"16" to be "000016"
"116" to be "000116"

and so on.

Any help whould be great!!

Thanks,

Jack
 
Hello,

Thanks for the quick reply. How do I have the formating done on a var like
CounterCount?

Thanks,

Jack
 
Hello,

jack said:
I have a number that is 6 places long.

I would like:

"16" to be "000016"
"116" to be "000116"

and so on.

Any help whould be great!!

\\\
MsgBox(Format(16, "000000"))
///

HTH,
Herfried K. Wagner
 
Back
Top