Buck
Sub ColtoRows()
Dim Rng As Range
Dim i As Long
Dim j As Long
Dim nocols As Integer
Set Rng = Cells(Rows.Count, 1).End(xlUp)
j = 1
nocols = InputBox("Enter Number of Columns Desired")
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
End Sub
Gord Dibben MS Excel MVP
On Tue, 11 Jul 2006 14:12:41 +1200, "Buck Rabbit" <getagrip@somethingsolid.com>
wrote:
It just seems to want to make the changes over the exact
Gord Dibben MS Excel MVP
|