Dim i, y, x As Integer
i = 1
Do Until Cells(i, 2) Like "L E G E N D :"
y = 1
x = 0
If Cells(i, 2) Like " *" And Cells(i, 3) = "ALL MEDIA" Then
Do Until Cells(y, 2) Like "L E G E N D :"
If Cells(i, 2) = Cells(y, 2) Then x = x + Cells(y, 4)
y = y + 1
Cells(i, 4) = x
Loop
i = i + 1
Loop
End Sub
I just have two loops there and I have an error
Loop without Do
and I clearly can see that I have this Loop
and Do
2x :D