many markets in first tab - target

Please post any questions regarding the program here.

Moderator: 2020vision

many markets in first tab - target

Postby alrodopial » Sun Apr 13, 2014 5:50 pm

I have many markets in first tab linked into excel, ie at A1, A10,A30 etc

Does BA updates more than one market at the same refresh? - at some moment -
ie first market and 3rd market, markets A1 and A30 at the same time

If so how can I understand that I must search range A1:P9 AND A30:P39?
what is inside target at this case?
(If Target.Columns.Count = 16 Then)
alrodopial
 
Posts: 1386
Joined: Wed Dec 06, 2006 9:59 pm

Postby alrodopial » Sun Apr 13, 2014 5:53 pm

also when a market is closed , ie F2=Closed
does BA updates excel?
alrodopial
 
Posts: 1386
Joined: Wed Dec 06, 2006 9:59 pm

Postby Captain Sensible » Mon Apr 14, 2014 12:55 am

Osknows gave me this code which I found useful to see which cells get updated from BA -

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
 Debug.Print Target.Address
End Sub


It will output which cells are updated in the immediate window of VBA editor, so if you slow down the refresh rates of the sheets (just to see things clearer) you'll see which cell ranges are being updated at each refresh or more likely combination of refreshes from each tab separately.

If you use the above code on a closed market you'll see that the 16 column range A1:P4 market details is still be refreshed but obviously there's no longer any price data being sent. I did put in a request for use to be able to turn on and off the auto refresh via excel as I reckon that'd be useful for cases where markets are closed.
User avatar
Captain Sensible
 
Posts: 2926
Joined: Sat Nov 19, 2005 2:29 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.