That is because the second End With should read Next i