Give this a try
Sub abc()
Dim LastRow As Long, pos As Long, i As Long, ii As Long, iii As Long, n As Long
Dim a() As Variant
Dim State As String, s As String
Dim iDate As Date
State = Cells(2, "D")
iDate = Cells(3, "D")
LastRow = Cells(Rows.CountLarge, "C").End(xlUp).Row
ReDim a(1 To LastRow, 1 To 14)
For i = 6 To LastRow
If InStr(1, Cells(i, "C"), "Manager Name:", vbTextCompare) > 0 Then
pos = InStr(1, Cells(i, "C"), "Manager Name:", vbTextCompare)
pos = pos + Len("Manager Name:")
s = Mid$(Cells(i, "C"), pos, Len(Cells(i, "C")) - pos + 1)
End If
If InStr(1, Cells(i, "C"), "Partner", vbTextCompare) > 0 Then
ii = i + 1
Do
n = n + 1
a(n, 1) = State
a(n, 2) = iDate
a(n, 3) = s
For iii = 3 To 13
a(n, iii + 1) = Cells(ii, iii)
Next iii
ii = ii + 1
Loop Until Len(Cells(ii, "C")) = 0
End If
Next i
Worksheets("SUMMARY").Range("b5").Resize(n, 14) = a
End Sub
Bookmarks