I don't need to explain that I am a 'newbie' because that will become obvious once you see the question!
I downloaded the Excel/VB 'SampleCode.xlsm' and added some code to list the name and odds for all the runners instead of just the first. That new code only works when by chance the next race has no runners scratched. When there is a scratched runner there is an error when the program attempts to insert the odds into a cell.
I have tried using AvailableToBack.Count but when I refer to that it causes a failure anyway. I just swap one fatal error for another. It may be that AvailableToBack doesn't exist for scratched runners?
I know there has to be a method for bypassing runners that are scratched, but I haven't been able to find any documentation/forum entry etc that covers this aspect.
I realise that it is quite possibly the most basic question ever posted, but I'd appreciate any assistance or pointer to the right documentation.
I downloaded the Excel/VB 'SampleCode.xlsm' and added some code to list the name and odds for all the runners instead of just the first. That new code only works when by chance the next race has no runners scratched. When there is a scratched runner there is an error when the program attempts to insert the odds into a cell.
I have tried using AvailableToBack.Count but when I refer to that it causes a failure anyway. I just swap one fatal error for another. It may be that AvailableToBack doesn't exist for scratched runners?
I know there has to be a method for bypassing runners that are scratched, but I haven't been able to find any documentation/forum entry etc that covers this aspect.
I realise that it is quite possibly the most basic question ever posted, but I'd appreciate any assistance or pointer to the right documentation.


Comment