Well do u meant this...
Sub Compare()
Dim a As Long
Range("O1").Select
a = 1
Do Until a > Cells(65536, "O").End(xlUp).Row
If (ActiveCell.Value <> ActiveCell.Offset(0, -8).Value) Then
ActiveCell.Value = "DELETED"
ActiveCell.Offset(1, 0).Select
a = a + 1
Else
ActiveCell.Offset(1, 0).Select
a = a + 1
End If
Loop
End Sub
Saurabh...
Main Topics
Browse All Topics





by: roryaPosted on 2008-01-16 at 05:46:50ID: 20671682
Do you mean this:
l.Value, LookIn:=xlValues, LookAt:=xlWhole)
Sub UpdateDeleted()
Dim cel As Range, rngFound As Range
'Compare and flag off deleted pipes
For Each cel In Range("O14", Range("O14").End(xlDown))
Set rngFound = Nothing
Set rngFound = Range("G:F").Find(what:=ce
If rngFound Is Nothing Then
If cel.Value <> "ISSUED CANCELLED" Then cel.Value = "DELETED"
Else
End If
Next cel
End Sub
Regards,
Rory