Sub CheckQBs()
Dim TeamQB01(1 To 32) As String
Dim TeamQB02(1 To 32) As String
Dim TeamQB03(1 To 32) As String
Dim TeamQB04(1 To 32) As String
Dim TeamQB05(1 To 32) As String
Dim TeamQB06(1 To 32) As String
Dim TeamQB07(1 To 32) As String
Dim TeamQB08(1 To 32) As String
Dim TeamQB09(1 To 32) As String
Dim TeamQB10(1 To 32) As String
Dim TeamQB11(1 To 32) As String
Dim TeamQB12(1 To 32) As String
Dim TeamQB13(1 To 32) As String
Dim TeamQB14(1 To 32) As String
Dim TeamQB15(1 To 32) As String
Dim oTeamQB01(1 To 32) As String
Dim oTeamQB02(1 To 32) As String
Dim oTeamQB03(1 To 32) As String
Dim oTeamQB04(1 To 32) As String
Dim oTeamQB05(1 To 32) As String
Dim oTeamQB06(1 To 32) As String
Dim oTeamQB07(1 To 32) As String
Dim oTeamQB08(1 To 32) As String
Dim oTeamQB09(1 To 32) As String
Dim oTeamQB10(1 To 32) As String
Dim oTeamQB11(1 To 32) As String
Dim oTeamQB12(1 To 32) As String
Dim oTeamQB13(1 To 32) As String
Dim oTeamQB14(1 To 32) As String
Dim oTeamQB15(1 To 32) As String
Dim NFLTeam() As Variant
NFLTeam = Array("BAL", "BUF", "CIN", "CLE", "DEN", "HOU", "IND", "JAX", "KCC", "MIA", "NEP", "NYJ", "OAK", "PIT", "SDC", "TEN", "ARI", "ATL", "CAR", "CHI", "DAL", "DET", "GBP", "MIN", "NOS", "NYG", "PHI", "STL", "SFO", "SEA", "TBB", "WAS")
Dim iCount As Integer
Sheets("CurrentDepthChart").Select
'For Each NFLTeam In Array(BAL, BUF, CIN, CLE, DEN, HOU, IND, JAX, KCC, MIA, NEP, NYJ, OAK, PIT, SDC, TEN, ARI, ATL, CAR, CHI, DAL, DET, GBP, Min, NOS, NYG, PHI, STL, SFO, SEA, TBB, WAS)
For iCount = 1 To 32
c = ((iCount - 1) * 12) + 2
TeamQB01(iCount) = Range("B" & c).Value
TeamQB02(iCount) = Range("C" & c).Value
TeamQB03(iCount) = Range("D" & c).Value
TeamQB04(iCount) = Range("E" & c).Value
TeamQB05(iCount) = Range("F" & c).Value
TeamQB06(iCount) = Range("G" & c).Value
TeamQB07(iCount) = Range("H" & c).Value
TeamQB08(iCount) = Range("I" & c).Value
TeamQB09(iCount) = Range("J" & c).Value
TeamQB10(iCount) = Range("K" & c).Value
TeamQB11(iCount) = Range("L" & c).Value
TeamQB12(iCount) = Range("M" & c).Value
TeamQB13(iCount) = Range("N" & c).Value
TeamQB14(iCount) = Range("O" & c).Value
TeamQB15(iCount) = Range("P" & c).Value
Next iCount
' Next NFLTeam
Sheets("LastRunDepthChart").Select
'For Each NFLTeam In Array(BAL, BUF, CIN, CLE, DEN, HOU, IND, JAX, KCC, MIA, NEP, NYJ, OAK, PIT, SDC, TEN, ARI, ATL, CAR, CHI, DAL, DET, GBP, Min, NOS, NYG, PHI, STL, SFO, SEA, TBB, WAS)
For pCount = 1 To 32
c = ((pCount - 1) * 12) + 2
oTeamQB01(pCount) = Range("B" & c).Value
oTeamQB02(pCount) = Range("C" & c).Value
oTeamQB03(pCount) = Range("D" & c).Value
oTeamQB04(pCount) = Range("E" & c).Value
oTeamQB05(pCount) = Range("F" & c).Value
oTeamQB06(pCount) = Range("G" & c).Value
oTeamQB07(pCount) = Range("H" & c).Value
oTeamQB08(pCount) = Range("I" & c).Value
oTeamQB09(pCount) = Range("J" & c).Value
oTeamQB10(pCount) = Range("K" & c).Value
oTeamQB11(pCount) = Range("L" & c).Value
oTeamQB12(pCount) = Range("M" & c).Value
oTeamQB13(pCount) = Range("N" & c).Value
oTeamQB14(pCount) = Range("O" & c).Value
oTeamQB15(pCount) = Range("P" & c).Value
Next pCount
' Next NFLTeam
Sheets("DepthChartChangeLog").Select
x = 0
'For Each NFLTeam In Array(BAL, BUF, CIN, CLE, DEN, HOU, IND, JAX, KCC, MIA, NEP, NYJ, OAK, PIT, SDC, TEN, ARI, ATL, CAR, CHI, DAL, DET, GBP, Min, NOS, NYG, PHI, STL, SFO, SEA, TBB, WAS)
For cCount = 1 To 32
y = 1
x = 0
x = x + 1
If TeamQB01(cCount) <> oTeamQB01(cCount) And oTeamQB01(cCount) <> "" Then
For Each TeamQBPos In Array(TeamQB01(cCount), TeamQB02(cCount), TeamQB03(cCount), TeamQB04(cCount), TeamQB05(cCount), TeamQB06(cCount), TeamQB07(cCount), TeamQB08(cCount), TeamQB09(cCount), TeamQB10(cCount), TeamQB11(cCount), TeamQB12(cCount), TeamQB13(cCount), TeamQB14(cCount), TeamQB15(cCount))
If oTeamQB01(cCount) = TeamQBPos Then
If x < 10 Then
OldPos = "QB0" & x
Else
OldPos = "QB" & x
End If
If y < 10 Then
NewPos = "QB0" & y
Else
NewPos = "QB" & y
End If
'MsgBox (oTeamQB01(cCount) & " was " & Pos & " and is now in posititon " & NewPos & " with " & NFLTeam(cCount - 1))
Sheets("DepthChartChangeLog").Select
r = ActiveSheet.UsedRange.Rows.Count + 1
Range("A" & r).Value = NFLTeam(cCount - 1)
Range("B" & r).Value = oTeamQB01(cCount)
Range("C" & r).Value = NewPos
Range("D" & r).Value = OldPos
If y < 2 Then
Range("E" & r).Value = "New Starter"
End If
If x < 2 And y > 1 Then
Range("E" & r).Value = "Lost Starter"
End If
If y > 1 And x - y > 0 And Range("E" & r).Value = "" Then
Range("E" & r).Value = "Bench Upgrade"
End If
If y > 1 And x - y < 0 And Range("E" & r).Value = "" Then
Range("E" & r).Value = "Bench Downgrade"
End If
Range("F" & r).Value = "=Today()"
Else
y = y + 1
End If
Next TeamQBPos
End If
y = 1
x = x + 1
If TeamQB02(cCount) <> oTeamQB02(cCount) And oTeamQB02(cCount) <> "" Then
For Each TeamQBPos In Array(TeamQB01(cCount), TeamQB02(cCount), TeamQB03(cCount), TeamQB04(cCount), TeamQB05(cCount), TeamQB06(cCount), TeamQB07(cCount), TeamQB08(cCount), TeamQB09(cCount), TeamQB10(cCount), TeamQB11(cCount), TeamQB12(cCount), TeamQB13(cCount), TeamQB14(cCount), TeamQB15(cCount))
If oTeamQB02(cCount) = TeamQBPos Then
If x < 10 Then
OldPos = "QB0" & x
Else
OldPos = "QB" & x
End If
If y < 10 Then
NewPos = "QB0" & y
Else
NewPos = "QB" & y
End If
'MsgBox (oTeamQB02(cCount) & " was " & Pos & " and is now in posititon " & NewPos & " with " & NFLTeam(cCount - 1))
Sheets("DepthChartChangeLog").Select
r = ActiveSheet.UsedRange.Rows.Count + 1
Range("A" & r).Value = NFLTeam(cCount - 1)
Range("B" & r).Value = oTeamQB02(cCount)
Range("C" & r).Value = NewPos
Range("D" & r).Value = OldPos
If y < 2 Then
Range("E" & r).Value = "New Starter"
End If
If x < 2 And y > 1 Then
Range("E" & r).Value = "Lost Starter"
End If
If y > 1 And x - y > 0 And Range("E" & r).Value = "" Then
Range("E" & r).Value = "Bench Upgrade"
End If
If y > 1 And x - y < 0 And Range("E" & r).Value = "" Then
Range("E" & r).Value = "Bench Downgrade"
End If
Range("F" & r).Value = "=Today()"
Else
y = y + 1
End If
Next TeamQBPos
End If
y = 1
x = x + 1