Hi,
A bit more involved bit I think we got there
Sub transpose()
Dim deleterange As Range
lastrow = Cells(Cells.Rows.Count, "A").End(xlUp).Row
Max = Application.WorksheetFunction.CountIf(Range("A1:A" & lastrow), _
Application.WorksheetFunction.Mode(Range("A1:A" & lastrow)))
col = 1
oset = -1
For x = 2 To lastrow
If Cells(x, 1).Value = Cells(x - 1, 1).Value Then
Cells(x, 1).Offset(oset, col).Value = Cells(x, 1).Value
col = col + 1
oset = oset - 1
If deleterange Is Nothing Then
Set deleterange = Cells(x, 1).Resize(, Max)
Else
Set deleterange = Union(deleterange, Cells(x, 1).Resize(, Max))
End If
Else
col = 1
oset = -1
End If
Next
If Not deleterange Is Nothing Then
deleterange.Delete Shift:=xlUp
End If
End Sub
Mike
> Thank You Very much indeed Mike,
> I think I didn't make myself understood,
[quoted text clipped - 63 lines]
> > >
> > > Many Thanks in advance!!!
Hilvert Scheper - 30 May 2008 16:58 GMT
Many Thanks Mike,
That's a Great help!!!
Hilvert
> Hi,
>
[quoted text clipped - 96 lines]
> > > >
> > > > Many Thanks in advance!!!
Mike H - 30 May 2008 17:23 GMT
Your welcome and thanks for the feedback
> Many Thanks Mike,
> That's a Great help!!!
[quoted text clipped - 100 lines]
> > > > >
> > > > > Many Thanks in advance!!!