1. Dim AR
2. Private Sub Worksheet_Calculate()
3. Dim i As Integer
4. i = 2
5. Do While i <= Cells(2, "C").End(xlDown).Row
6. If Not IsError(Cells(i, "C")) Then
7. If Cells(i, "C") > 100 Then
8. With Sheets("sheet2").[C65535].End(xlUp).Offset(1).Resize(, 3)
9. If IsEmpty(AR) Then
10. .Value = Cells(i, "A").Resize(, 3).Value
11. ElseIf Cells(i, "C") <> AR(i - 1, 1) Then
12. .Value = Cells(i, "A").Resize(, 3).Value
13. End If
14. End With
15. End If
16. End If
17. i = i + 1
18. Loop
19. AR = Range(Cells(2, "C"), Cells(2, "C").End(xlDown))
20. End Sub