Excel Help

Please post any questions regarding the program here.

Moderator: 2020vision

Excel Help

Postby horsesystemagic » Fri Sep 10, 2010 1:53 pm

Hi All

Yet another challenge.
What I trying to achieve is for excel to fire another bet what a green up has been sucessful.
What I trying to do is to clear the bet reference and bet time Cells so it refire the original bet again.
What I am doing is pointing to the profit /loss cells and if it showing a profit in all cells for example X5:X30 then to clear cells T5:U30.
Is this possible? Also I would like to place a stop on betting after -60 seconds, wether inplay or not?

Thanks in advance. This Forum is so full of information keep up the great work.

Regards Shaune
horsesystemagic
 
Posts: 15
Joined: Fri Jul 23, 2010 12:48 pm

Postby osknows » Fri Sep 10, 2010 10:01 pm

This should be close but is untested

Code: Select all
Sub test()

With Sheet1
    timetext = Replace(.Range("d2").Value, "-", "")
    If InStr(1, .Range("d2").Value, "-", vbTextCompare) > 0 And ((Hour(timetext) * 60 * 60) + (Minute(timetext) * 60) + Second(timetext)) >= 60 Then
   
    'do nothing
   
    Else
   
    'clear if range in profit and bet ref exists
    If Application.WorksheetFunction.CountA(.Range("T5:T55")) > 0 And Application.WorksheetFunction.CountIf(.Range("X5:X55"), "<0") = 0 Then
   
    .Range("T5:U55").ClearContents
    End If
   
    End If
End With

End Sub
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am


Return to Help

Who is online

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