
I was wondering what the exact order was that BA did things when exporting to Excel.
I know that it sends the main price info first (columns A to M) then sends the bet info 1 line at a time, so if there are 8 runners then BA sends 9 lots of data for each refresh.
What I don't know is when it reads cols N to P for placing and cancelling bets. Is it 1 row at a time or all together, and when in amongst sending data to Excel does it happen.
The reason I ask is that I have a spreadsheet that has a cancel routine as part of it and occasionally (maybe 1 in 30) it reads the cancel as successful but the bet was completely taken. I've gone through my code time and again and can't see why it would happen so this is my last resort.
The routine is triggered each refresh of BA (only when the main data is changed) and the test to see if the cancel has been successful is "BetRef=empty and MatchedStake=0"
Any help appreciated.