Moderator: 2020vision
by lindemann » Fri Oct 19, 2012 8:47 am
by negapo » Fri Oct 19, 2012 9:50 am
Dim timeInPlay As Date, turnedInPlay As Boolean
Dim lastRace As String, nextRaceTrigger As Integer
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
'First Part
If Range("E2").Value = "In Play" Then
If turnedInPlay = False Then turnedInPlay = True: timeInPlay = Now
Range("T1").Value = DateDiff("s", timeInPlay, Now)
Else
turnedInPlay = False
Range("T1").Value = 0
End If
'Second Part
If Range("R2").Value = -1 And nextRaceTrigger = 0 Then
lastRace = Range("A1").Value
.Range("Q2").Value = -1
nextRaceTrigger = 1
Else
nextRaceTrigger = 0
Range("Q2").Formula = "=IF(T3<>29,0.2,2)"
End If
Application.EnableEvents = True
by lindemann » Fri Oct 19, 2012 10:48 am
by negapo » Fri Oct 19, 2012 11:17 am
Private Sub Worksheet_Change(ByVal Target As Range)
'My Code Here
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim timeInPlay As Date, turnedInPlay As Boolean
Dim lastRace As String, nextRaceTrigger As Integer
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
'First Part
If Range("E2").Value = "In Play" Then
If turnedInPlay = False Then turnedInPlay = True: timeInPlay = Now
Range("T1").Value = DateDiff("s", timeInPlay, Now)
Else
turnedInPlay = False
Range("T1").Value = 0
End If
'Second Part
If Range("R2").Value = -1 And nextRaceTrigger = 0 Then
lastRace = Range("A1").Value
.Range("Q2").Value = -1
nextRaceTrigger = 1
Else
nextRaceTrigger = 0
Range("Q2").Formula = "=IF(T3<>29,0.2,2)"
End If
Application.EnableEvents = True
End Sub
by lindemann » Fri Oct 19, 2012 3:12 pm
by negapo » Fri Oct 19, 2012 5:02 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Dim TimeInPlay As Date, TurnedInPlay As Boolean
Dim LastRace As String
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
Select Case Range("E2").Value
Case "In Play"
If Range("Q2").Value <> 0.2 Then Range("Q2").Value = 0.2
If TurnedInPlay = False Then TurnedInPlay = True: TimeInPlay = Now
Range("T1").Value = DateDiff("s", TimeInPlay, Now)
Case "Closed"
LastRace = Range("A1").Value
Range("Q2").Value = -1
Case Else
TurnedInPlay = False
Range("T1").Value = 0
If Range("Q2").Value <> 2 Then Range("Q2").Value = 2
End Select
Application.EnableEvents = True
End Sub
by negapo » Fri Oct 19, 2012 5:31 pm
by lindemann » Fri Oct 19, 2012 10:36 pm
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.