Running Macros while Bet Trader running

Please post any questions regarding the program here.

Moderator: 2020vision

Running Macros while Bet Trader running

Postby monkey » Thu Feb 09, 2006 5:18 pm

I would like to run a macro to clear the bet ref and time matched every 5 minutes during a football match to enable multiple triggerred bets to be made.

How would this be done without freezing the Bet Trader program?
monkey
 
Posts: 36
Joined: Sat Nov 19, 2005 2:21 pm
Location: York

Postby Captain Sensible » Thu Feb 09, 2006 9:31 pm

I haven't found any problems with macros freezing Betfair trader. I usually use the CLEAR trigger to clear the cells when bets have been matched or certain criteria met so it's kick off again - you could use a simple macro timer like the one below to clear every 5 mins

ALt F11 to open the editor and add the following to the workbook

Private Sub Workbook_Open()
Application.OnTime Now + TimeValue("00:05:00"), "timer"
End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.OnTime dTime, "timer", , False
End Sub

Then add the following macro to the modules

Public dTime As Date
Sub timer()
dTime = Now + TimeValue("00:05:00")
Application.OnTime dTime, "timer"

Range("Q14:U46").Select <<< ------------or whatever range your bet refs are in
Selection.ClearContents
Range("A1").Select
End Sub
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Postby monkey » Mon Feb 13, 2006 2:31 pm

Many thanks, worked a treat.
monkey
 
Posts: 36
Joined: Sat Nov 19, 2005 2:21 pm
Location: York


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 36 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.