Sub organize()
Dim rx(100)
shout = "sheet3"
For i = 1 To 100
rx(i) = 1
Next i
r = 2
c = -3
Sheets("sheet1").Select
Nm = ""
While Cells(r, 1) & Cells(r, 2) & Cells(r, 3) <> ""
If Cells(r, 1) <> "" And Trim(Cells(r, 3)) = "" And Cells(r, 1) <> Nm Then
c = c + 4
Sheets(shout).Cells(1, c) = Cells(r, 1)
Sheets(shout).Cells(1, c).Font.Bold = Cells(r, 1).Font.Bold
Nm = Cells(r, 1)
Else
Sheets(shout).Cells(rx(c), c) = Cells(r, 1)
Sheets(shout).Cells(rx(c), c).Font.Bold = Cells(r, 1).Font.Bold
Sheets(shout).Cells(rx(c), c + 1) = Cells(r, 2)
Sheets(shout).Cells(rx(c), c + 2) = Cells(r, 3)
End If
rx(c) = rx(c) + 1
Nm = Cells(r, 2)
r = r + 1
Wend
End Sub
Bookmarks