Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
All the cells in Column B in a worksheet must be 6 chars long. If I have a string 123 in cell A1 using VBA how would I populate cell B2 with this value including leading Zero to fill the gap to 6 characters. Column A could contain a number with anything between 1 and 6 characters. So for example the result should be A B 1 123 000123 2 52 000052 3 52174 052174 Thanks Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Leading zero's trail Number | Excel Worksheet Functions | |||
Leading Zero's in Excel | Excel Discussion (Misc queries) | |||
Leading Zero's | Excel Discussion (Misc queries) | |||
How to add leading zero's | Excel Worksheet Functions | |||
Leading zero's | Excel Discussion (Misc queries) |