Im trying to collect race card data (including trainers, jockeys info etc.) for all UK races. When i moving to the next race by Q2 modifier all additional cells (trainers, form etc) are empty.
Here is my code. WHat should i do to get all data?
- Code: Select all
If Target.Columns.Count = 16 Then
If MarketHead <> Range("A1").Value Then
BAarray(1) = Cells(1, 1).Value
For i = 5 To UsedRange.Rows.Count
BAarray(2) = Cells(i, 1)
BAarray(3) = Cells(i, 25)
BAarray(4) = Cells(i, 26)
BAarray(5) = Cells(i, 27)
BAarray(6) = Cells(i, 28)
BAarray(7) = Cells(i, 29)
BAarray(8) = Cells(i, 30)
BAarray(9) = Cells(i, 31)
BAarray(10) = Cells(i, 32)
BAarray(11) = Cells(i, 33)
BAarray(12) = Cells(i, 34)
BAarray(13) = Cells(i, 35)
BAarray(14) = Cells(i, 36)
BAarray(15) = Cells(i, 37)
BAarray(16) = Cells(i, 38)
BAarray(17) = Cells(i, 39)
BAarray(18) = Cells(i, 40)
j = 1
Do While j < 19
If BAarray(2) = "" Then Exit Do
ThisWorkbook.Sheets("Race Card Info").Cells(k, j).Value = BAarray(j)
j = j + 1
Loop
If BAarray(2) <> "" Then k = k + 1
Next i
MarketHead = Range("A1").Value
Range("Q2").Value = -1
End If
If Range("J3").Value = "L" Then
LoadRaceCard = False
End If
best regards
Valery