place another bet

Please post any questions regarding the program here.

Moderator: 2020vision

place another bet

Postby alrodopial » Sat Feb 12, 2011 12:39 am

It may be easy.
I place a bet in running which is matched or if it's not matched (or partially) it is cancelled after few secs.
So in excel,in column with the bet ref there is a number or "cancel".
what is the easiest way to clear this flag so I can place another bet in the same selection?
Do I need vba for this?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Postby mak » Sat Feb 12, 2011 7:51 am

Hi Al
if at bet ref there is CANCELLED you can use Gary code

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
With Range("t5:t54")
Set c = .Find("CANCELLED", LookIn:=xlValues)
If Not c Is Nothing Then
firstaddress = c.Address
Do
c.Value = ""
Set c = .FindNext(c)
If Not c Is Nothing Then
If c.Address = firstaddress Then c = Nothing
End If
Loop While Not c Is Nothing
End If
End With
Application.EnableEvents = True
End If
End Sub



If there is a number you can use an if statement like
=if(T5>0,"CLEAR",...your trigger...)
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby alrodopial » Sat Feb 12, 2011 3:21 pm

Thanks
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

Users browsing this forum: Majestic-12 [Bot] and 46 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.