Cells(resultlocy + 2, resultlocx + 2).Value = Cells(13, 23).Value Then Cells(resultlocy…
- User
Cells(resultlocy + 2, resultlocx + 2).Value = Cells(13, 23).Value Then Cells(resultlocy + 2, resultlocx + 2).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 2, resultlocx + 2).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 2, resultlocx + 3).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 2, Worksheets(“Data”).Cells(y, 2).Value + 3).Value If Cells(resultlocy + 2, resultlocx + 3).Value = Cells(13, 24).Value Then Cells(resultlocy + 2, resultlocx + 3).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 2, resultlocx + 3).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 2, resultlocx + 4).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 2, Worksheets(“Data”).Cells(y, 2).Value + 4).Value If Cells(resultlocy + 2, resultlocx + 4).Value = Cells(13, 25).Value Then Cells(resultlocy + 2, resultlocx + 4).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 2, resultlocx + 4).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 3, resultlocx).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 3, Worksheets(“Data”).Cells(y, 2).Value).Value If Cells(resultlocy + 3, resultlocx).Value = Cells(14, 21).Value Then Cells(resultlocy + 3, resultlocx).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 3, resultlocx).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 3, resultlocx + 1).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 3, Worksheets(“Data”).Cells(y, 2).Value + 1).Value If Cells(resultlocy + 3, resultlocx + 1).Value = Cells(14, 22).Value Then Cells(resultlocy + 3, resultlocx + 1).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 3, resultlocx + 1).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 3, resultlocx + 2).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 3, Worksheets(“Data”).Cells(y, 2).Value + 2).Value If Cells(resultlocy + 3, resultlocx + 2).Value = Cells(14, 23).Value Then Cells(resultlocy + 3, resultlocx + 2).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 3, resultlocx + 2).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 3, resultlocx + 3).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 3, Worksheets(“Data”).Cells(y, 2).Value + 3).Value If Cells(resultlocy + 3, resultlocx + 3).Value = Cells(14, 24).Value Then Cells(resultlocy + 3, resultlocx + 3).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 3, resultlocx + 3).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 3, resultlocx + 4).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 3, Worksheets(“Data”).Cells(y, 2).Value + 4).Value If Cells(resultlocy + 3, resultlocx + 4).Value = Cells(14, 25).Value Then Cells(resultlocy + 3, resultlocx + 4).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 3, resultlocx + 4).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 4, resultlocx).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 4, Worksheets(“Data”).Cells(y, 2).Value).Value If Cells(resultlocy + 4, resultlocx).Value = Cells(15, 21).Value Then Cells(resultlocy + 4, resultlocx).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 4, resultlocx).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 4, resultlocx + 1).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 4, Worksheets(“Data”).Cells(y, 2).Value + 1).Value If Cells(resultlocy + 4, resultlocx + 1).Value = Cells(15, 22).Value Then Cells(resultlocy + 4, resultlocx + 1).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 4, resultlocx + 1).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 4, resultlocx + 2).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 4, Worksheets(“Data”).Cells(y, 2).Value + 2).Value If Cells(resultlocy + 4, resultlocx + 2).Value = Cells(15, 23).Value Then Cells(resultlocy + 4, resultlocx + 2).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 4, resultlocx + 2).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 4, resultlocx + 3).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 4, Worksheets(“Data”).Cells(y, 2).Value + 3).Value If Cells(resultlocy + 4, resultlocx + 3).Value = Cells(15, 24).Value Then Cells(resultlocy + 4, resultlocx + 3).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 4, resultlocx + 3).Interior.Color = RGB(255, 255, 255) End If Cells(resultlocy + 4, resultlocx + 4).Value = Cells(Worksheets(“Data”).Cells(y, 1).Value + 4, Worksheets(“Data”).Cells(y, 2).Value + 4).Value If Cells(resultlocy + 4, resultlocx + 4).Value = Cells(15, 25).Value Then Cells(resultlocy + 4, resultlocx + 4).Interior.Color = RGB(255, 255, 0) Else Cells(resultlocy + 4, resultlocx + 4).Interior.Color = RGB(255, 255, 255) End If complete this code
- Assistant