Sub InceptionDifference()
Dim LastRow As Long
Dim LastColumn As Integer
Dim id As Range
Dim sht As Worksheet
Dim i As Long
Dim r As Range
For i = 1 To ThisWorkbook.Worksheets.Count
Worksheets(i).Activate
If WorksheetFunction.CountA(Cells) > 0 Then
LastRow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LastColumn = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
Set r = Range(Cells(1, 1), Cells(LastRow, LastColumn))
Set id = r.Find(What:="inception difference", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious)
Dim idLastRow As Long
Dim r2 As Range
If id.Value <> "" Then idLastRow = Cells(Rows.Count, id.Column).End(xlUp).Row
Set r2 = Range(id.Address, Cells(idLastRow, id.Column))
If Application.CountIf(r2, "<0") = idLastRow - id.Row Then
With ActiveWorkbook.Sheets(i).Tab
.Color = 255
End With
Else
If Application.CountIf(r2, ">0") = idLastRow - id.Row Then
With ActiveWorkbook.Sheets(i).Tab
.Color = 5287936
End With
Else
With ActiveWorkbook.Sheets(i).Tab
.Color = 65535
End With
End If
End If
End If
Next i
End Sub