Re: find anywhere in A and B anything from C
I have managed to do something similar here is the code
Sub fixZaseden()
Application.Calculation = xlCalculationManual
For i = 6 To Range("j65536").End(xlUp).Row
If Cells(i, 10) = "Zaseden" And Cells(i, 7) < Cells(i - 1, 7) Then
Range(Cells(i, 1), Cells(i, 7)).Copy Destination:=Cells(4, 1)
Range(Cells(i - 1, 1), Cells(i - 1, 7)).Copy Destination:=Cells(i, 1)
Range(Cells(4, 1), Cells(4, 7)).Copy Destination:=Cells(i - 1, 1)
Range(Cells(4, 1), Cells(4, 7)).ClearContents
Range(Cells(4, 1), Cells(4, 7)).Interior.ColorIndex = 55
End If
Next
Application.Calculation = xlAutomatic
r = Range("c65536").End(xlUp).Row
Range("a5:G" & r).Select
Rows("4:" & r).Select
For i = 5 To r
Rows(i).Select
If i Mod 2 = 0 Then
Selection.Interior.ColorIndex = xlNone
Else
Selection.Interior.ColorIndex = 36
End If
Next
End Sub
Display More
In my instance row 3 is used for headers and in row 2 I have buttons and in row 1 there is the name of the group (in cell A1)
so I used row 4 for temporary data
So when do you think should this fixroutine not be used??
Do you think I have amended this fixroutine sub correctly cause I get pretty descent results altough I havent tested it good yet