LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Column List to Multiple Columns

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Column List to Multiple Columns TStirling Excel Worksheet Functions 5 January 8th 08 08:35 PM
Column List to Multiple Columns TStirling Excel Discussion (Misc queries) 0 January 8th 08 04:28 PM
move list of numbers from one column to multiple columns coach eo Excel Discussion (Misc queries) 12 February 16th 06 08:12 PM
Change a Column list into multiple rows & columns angelface Excel Worksheet Functions 3 January 28th 06 01:23 AM
How do I create multiple columns from a one-column list in Excel? Melissa Excel Worksheet Functions 5 October 5th 05 03:32 AM


All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"