Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
AP,
Thats just awesome Thanks Darren Ardus Petus wrote: Paste following code in a Module: '------------------------------------- Sub concat() 'Cell address of 1st vehicle to be processed Const strFirstVehicle = "B1" 'assume rank is one column to the left 'and result one column to the right Dim rng As Range Dim strResult As String 'Initialize strRsult = "" Set rng = Range(strFirstVehicle) 'Loop Do While rng.Value < "" strResult = strResult & rng.Value If rng.Offset(0, -1).Value < "" Then rng.Offset(0, 1) = strResult strResult = "" End If Set rng = rng.Offset(1, 0) Loop End Sub '---------------------------------------- HTH -- AP Ardus, [quoted text clipped - 12 lines] Darren -- Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200603/1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Loop gone crazy | Excel Discussion (Misc queries) | |||
Do Loop | Excel Discussion (Misc queries) | |||
Using Concatenate inside a vlookup | Excel Worksheet Functions | |||
VB for excel, how do I loop through code | Excel Discussion (Misc queries) | |||
Concatenate cells without specifying/writing cell address individually | Excel Discussion (Misc queries) |