beccanet,
Try: your_number = 13.123 . I don''t think your "leading zero" solution
will return anything you like. Same for a value like 65535 or something
like -42. :-)
That means you either did not give us all the info needed (like you only use
whole, positive values in a certain range), or you didn't think it fully
thru ...
In other words: "simple solutions" are often only that because they ignore a
lot of possible cases. Be aware of it (and preferrably mention it when
offering the solution to others).
Post by b***@gmail.comThanks for posting this, and who cares if it was long after the original
post.
As I do not see that post here I'm assuming he emailed it to you personally,
and you made a mistake by replying to it in the group.
And some people here do really care. Like me. In your case its not really
a problem (you only expressed your gratitude to a soluton), but some posters
seem to think that answering a question that was asked years ago is good.
Even worse, people who seem to think that they can just continue a years old
conversation (as if the involved people are still around and know what it
was about).
Regards,
Rudy Wieser
Post by b***@gmail.comPost by m***@gmail.comIs there a way to format a text string similiar to VB's
format$ function?. I would like to include leading zero's.
I have looked at formatnumber and formatcurrency but I
don't think they let me decide how many leading zeros to
use.
Les F
your_number = 13
msgbox right( your_number + 10000, 4 )
Thanks for posting this---it helped me very quickly come up with a
solution for my own "leading zeros" dilemma in a very simple line of code.