Hi
I have VERY BASIC knowledge with excel coding... The below code was written for me and I have tried to adapt it BUT its just not working.
64 1 50 5.35
64 1 32 5.35
55 1 32 5.35
56 1 32 5.35
58 1 32 5.35
91 1 32 5.35
91 1 50 5.35
97 1 32 5.35
98 1 32 5.35
98 1 32 5.35
99 1 32 5.35
100 1 32 5.35
I simply need it to fill the rows with color which are duplicates
WHERE
Col A number are equal (i.e. 64 = 64)
AND
Col B has a number 1 (This part seems to be ok)
Thx for ur help, VERY appreciated
Darin
I have VERY BASIC knowledge with excel coding... The below code was written for me and I have tried to adapt it BUT its just not working.
64 1 50 5.35
64 1 32 5.35
55 1 32 5.35
56 1 32 5.35
58 1 32 5.35
91 1 32 5.35
91 1 50 5.35
97 1 32 5.35
98 1 32 5.35
98 1 32 5.35
99 1 32 5.35
100 1 32 5.35
I simply need it to fill the rows with color which are duplicates
WHERE
Col A number are equal (i.e. 64 = 64)
AND
Col B has a number 1 (This part seems to be ok)
Code:
Sub Duplicate()
Dim LastUsedRow As Long
Dim i As Long
Dim j As Long
Application.ScreenUpdating = False
With Worksheets("Sheet1")
LastUsedRow = .Cells(65536, 1).End(xlUp).Row
If LastUsedRow > 1 Then
i = 2
Do
If .Cells(i, 1).Value = .Cells(i, 1).Value And .Cells(i, 2) = 1 Then
.Range(.Cells(i, 1), .Cells(i, 4)).Interior.ColorIndex = 19
LastUsedRow = LastUsedRow + 1
End If
i = i + 1
Loop Until i > LastUsedRow
End If
End With
Application.ScreenUpdating = True
End Sub
Thx for ur help, VERY appreciated
Darin