convert number to text
format([a1],"000")
--
Kind regards,
Niek Otten
Microsoft MVP - Excel
"Scott" wrote in message ...
| how to convert a number to text in vba, e.g. showing 5 as "005". I can do it
| on spreadsheet with a function like '=Text(A1,"000")'. can it be done in vba?
|