Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Jan 8, 11:20*am, merjet wrote:
Sub Macro1() 'assumes target sheet is ActiveSheet 'assumes data starts in row 1 'works in Excel 2002 Dim iCt As Integer Dim iRow As Integer iCt = 2 iRow = 1 iCol = 24 Do * * If Range("C" & iCt) = "" Then * * * * Cells(iRow, iCol) = Range("W" & iCt) * * * * Range("W" & iCt).Clear * * * * iCol = iCol + 1 * * Else * * * * iCol = 24 * * * * iRow = iCt * * End If * * iCt = iCt + 1 Loop Until Range("W" & iCt) = "" End Sub Hth, Merjet What changes to the code have to be made if the data begins on Row 2? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Column List to Multiple Columns | Excel Worksheet Functions | |||
Column List to Multiple Columns | Excel Discussion (Misc queries) | |||
move list of numbers from one column to multiple columns | Excel Discussion (Misc queries) | |||
Change a Column list into multiple rows & columns | Excel Worksheet Functions | |||
How do I create multiple columns from a one-column list in Excel? | Excel Worksheet Functions |