debbie
If all the data is as your example, i.e. 5 rows and a blank row, the code
below will move each to 5 columns per row.
Sub ColtoRows()
Dim rng As Range
Dim i As Long
Dim j As Long
Set rng = Cells(Rows.Count, 1).End(xlUp)
j = 1
On Error GoTo endit
nocols = InputBox("Enter Number of Columns Desired")
If nocols = "" Or Not IsNumeric(nocols) Then Exit Sub
For i = 1 To rng.Row Step nocols
Cells(j, "A").Resize(1, nocols).Value = _
Application.Transpose(Cells(i, "A").Resize(nocols, 1))
j = j + 1
Next
Range(Cells(j, "A"), Cells(rng.Row, "A")).ClearContents
Exit Sub
endit:
End Sub
Copy/paste the code to a general module in your workbook. Hit ALT + F11
to get to the Visual Basic Editor. View>Project Explorer. Left-click on your
workbook/project. Insert>Module. Paste in here.
ALT + F11 to go back to Excel. Tools>Macro>Macros. Select the macro by name
then Run.
NOTE: When asked "how many columns" enter 6 to account for the blank rows.
Remember also. There is no "Undo" from a macro. Make sure you try this on a
copy of the worksheet first.
Gord Dibben XL2002