Try this for results on sheet2.
Sub MG20Apr31
Dim Rng As Range, Dn As Range, c As Long, Ac As Long
Set Rng = Range(Range("A1"), Range("A" & Rows.Count).End(xlUp))
ReDim Ray(1 To Rng.Count, 1 To 1)
For Each Dn In Rng
If Dn.Value Like "Plant name*" Then
c = c + 1: Ac = 0
End If
Ac = Ac + 1
If Ac > UBound(Ray, 2) Then ReDim Preserve Ray(1 To Rng.Count, 1 To Ac)
Ray(c, Ac) = Dn.Value
Next Dn
With Sheets("Sheet2").Range("A1").Resize(c, UBound(Ray, 2))
.Value = Ray
.Borders.Weight = 2
.Columns.AutoFit
End With
End Sub
Regards Mick
Bookmarks