Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, Writiing a macro which goes through each cell 9they are numbers) i column 5, if the length of the cell is 1 a zero is added to the start Below is an excerpt of the code, not quite working, many thks Dim i lastrow = Range("A50000").End(xlUp).Row For i = 1 To lastrow If Len(Cells(i, 5)) = 1 Then Cells(i, 5) = "0" & Cells(i, 5) End If Nex -- T De Villier ----------------------------------------------------------------------- T De Villiers's Profile: http://www.excelforum.com/member.php...fo&userid=2647 View this thread: http://www.excelforum.com/showthread.php?threadid=56371 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
concatenating | Excel Worksheet Functions | |||
concatenating | Excel Discussion (Misc queries) | |||
Concatenating % | Excel Discussion (Misc queries) | |||
Concatenating | Excel Programming | |||
Concatenating | New Users to Excel |