BEEJAY,
Give the following a try:
Sub tgr()
Const Col1 As String = "A"
Const Col2 As String = "B"
Const Col3 As String = "C"
Const ColUpdate As String = "E"
Dim arrUpdate As Variant: arrUpdate = Intersect(ActiveSheet.UsedRange, Columns(ColUpdate)).Value
Dim rIndex As Long
With ActiveSheet.UsedRange
For rIndex = .Row + 1 To .Row + .Rows.Count - 1
If Cells(rIndex, Col1).Value = Cells(rIndex - 1, Col1).Value _
And Cells(rIndex, Col2).Value = Cells(rIndex - 1, Col2).Value _
And Cells(rIndex, Col3).Value = Cells(rIndex - 1, Col3).Value Then
arrUpdate(rIndex + 1 - .Row, 1) = 0
End If
Next rIndex
End With
Intersect(ActiveSheet.UsedRange, Columns(ColUpdate)).Value = arrUpdate
End Sub
Hope that helps,
~tigeravatar
Bookmarks