Using format()

  • Thread starter Thread starter Rodolfo Fontes
  • Start date Start date
R

Rodolfo Fontes

Hi group,

How can I set a number to be like this?
Original: 123456
Result: 000012345600

Thanks,
Rodolfo Fontes
 
Off the immediate window

? format("123456", "0000000000") & "00"
000012345600
? format("000456", "0000000000") & "00"
000000045600
? format("120456", "0000000000") & "00"
000012045600

Krgrds,
Perry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top