However, i have run into a jam , quite early on................
- Code: Select all
Private Sub CommandButton1_Click()
For i = 9 To 5130 Step 1
If Cells(i, 1) = "" Then ' i know i am in the blank row between racedatas, first runner is 5 rows down
' Col B contains the odds, Col C contains "Nos of Runners" - from CommandButton1
NosRunners = Cells(i + 5, 3).Value
For j = (i + 5) To (NosRunners + i + 5) Step 1 'flicks down rows containing runners in this race
'go find rank of odds ( lowest odds = 1)
' cells(j,15)= worksheetfunction.Rank(cells(j,2),cells(i+5,2):cells(NosRunners+i+5),1)
'Outcome of a runner is in col D, how did the ranked runner perform ?
Next j
Next i
End Sub
Worksheetfunction line , vba reported "Compile error : expected : list seperator or ) "
":" is the source of the problem.
Any suggestions ?
This code is a bit of a ' feel in the dark' to sort out the info in each race, so , to later apply dutching strategy