Excel Q2 question

Please post any questions regarding the program here.

Moderator: 2020vision

Excel Q2 question

Postby cooldad » Tue Nov 25, 2008 12:51 pm

Using Excel, I like to go through all the markets from a quick pick list. To load the quick pick list, I put value -3 in cell Q2, then I want to loop over all events by putting value -1 in cell Q2.

In BA, I have enabled triggered betting.

I am using VBA to set the value in Q2. When I use the debugger, it works fine, however when I run the macro it doesn´t work. It looks like the value in Q2 disappears too quickly to be picked up by BA.

I tried to add Application.Wait but that doesn´t help either, as VBA is single-threaded.

I got it sort of working using VBA trigger (Application.OnTime (Now + TimeValue("00:00:01")), "UserDefinedFunction"), but this leads to infinite recursion as the user defined function call itself repeatedly.

Does anyone know a better way to implement this?

Thanks!
cooldad
 
Posts: 33
Joined: Fri Jun 13, 2008 2:16 pm

Postby cooldad » Tue Nov 25, 2008 1:40 pm

I already found what I was doing wrong. It´s not BA that doesn´t pick up the value in Q2, it was the way I implemented my VBA macro that was causing the problem. I was running a separate macro in a continuous loop (taking up 100% CPU time), but now I am using the Worksheet_Change event on the BetAssist worksheet. Now everything works fine.

Sorry for being such a noob!!!
cooldad
 
Posts: 33
Joined: Fri Jun 13, 2008 2:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 43 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.