Moderator: 2020vision
by Ilena » Thu Dec 30, 2010 8:48 pm
by osknows » Thu Dec 30, 2010 9:22 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Dim iRow As Integer
Dim iCol As Integer
Dim cell As Object
Application.EnableEvents = False
For Each cell In Target
iRow = cell.Row
iCol = cell.Column
' Update Max and Min Matched Values from start of inplay
If Cells(2, 5) = "In Play" And iCol = 15 And iRow > 4 And iRow < 7 Then
If IsEmpty(Range("AJ" & iRow).Value) Then Range("AJ" & iRow).Value = 0
If IsEmpty(Range("AI" & iRow).Value) Then Range("AI" & iRow).Value = 1001
If IsEmpty(Range("AH" & iRow).Value) Then Range("AH" & iRow).Value = Range("O" & iRow).Value
If Not IsEmpty(cell.Value) Then
Range("AG" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AI" & iRow).Value And cell.Value > 1 Then Range("AI" & iRow).Value = cell.Value
If cell.Value > Range("AJ" & iRow).Value And cell.Value < 1001 Then Range("AJ" & iRow).Value = cell.Value
End If
End If
'==========================
' Update Max and Min Matched Values from first bet
If Cells(2, 14) <> 0 And iCol = 15 And iRow > 4 And iRow < 7 Then
If IsEmpty(Range("AD" & iRow).Value) Then Range("AD" & iRow).Value = 0
If IsEmpty(Range("AC" & iRow).Value) Then Range("AC" & iRow).Value = 1001
If IsEmpty(Range("AB" & iRow).Value) Then Range("AB" & iRow).Value = Range("O" & iRow).Value
If Not IsEmpty(cell.Value) Then
Range("AA" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AC" & iRow).Value And cell.Value > 1 Then Range("AC" & iRow).Value = cell.Value
If cell.Value > Range("AD" & iRow).Value And cell.Value < 1001 Then Range("AD" & iRow).Value = cell.Value
End If
End If
Next cell
'==========================
If updating Then
Application.EnableEvents = True
Exit Sub
Else
updating = True
If Cells(2, 5) = "In Play" Then
If Cells(5, 25) = "" Then Cells(5, 25) = Cells(5, 15)
If Cells(6, 25) = "" Then Cells(6, 25) = Cells(6, 15)
End If
If Cells(2, 5) <> "In Play" And Cells(2, 6) <> "Suspended" Then
Cells(5, 25) = ""
Cells(6, 25) = ""
End If
updating = False
End If
Application.EnableEvents = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Dim iRow As Integer
Dim iCol As Integer
Dim cell As Object
Application.EnableEvents = False
For Each cell In Target
iRow = cell.Row
iCol = cell.Column
' Update Max and Min Matched Values from start of inplay
If Cells(2, 5) = "In Play" And iCol = 15 And iRow > 4 And iRow < 7 Then
If IsEmpty(Range("AJ" & iRow).Value) Then Range("AJ" & iRow).Value = 0
If IsEmpty(Range("AI" & iRow).Value) Then Range("AI" & iRow).Value = 1001
If IsEmpty(Range("AH" & iRow).Value) Then Range("AH" & iRow).Value = Range("O" & iRow).Value
If Not IsEmpty(cell.Value) Then
Range("AG" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AI" & iRow).Value And cell.Value > 1 Then Range("AI" & iRow).Value = cell.Value
If cell.Value > Range("AJ" & iRow).Value And cell.Value < 1001 Then Range("AJ" & iRow).Value = cell.Value
End If
End If
'==========================
' Update Max and Min Matched Values from first bet
If Cells(2, 14) <> 0 And iCol = 15 And iRow > 4 And iRow < 7 Then
If IsEmpty(Range("AD" & iRow).Value) Then Range("AD" & iRow).Value = 0
If IsEmpty(Range("AC" & iRow).Value) Then Range("AC" & iRow).Value = 1001
If IsEmpty(Range("AB" & iRow).Value) Then Range("AB" & iRow).Value = Range("O" & iRow).Value
If Not IsEmpty(cell.Value) Then
Range("AA" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AC" & iRow).Value And cell.Value > 1 Then Range("AC" & iRow).Value = cell.Value
If cell.Value > Range("AD" & iRow).Value And cell.Value < 1001 Then Range("AD" & iRow).Value = cell.Value
End If
End If
Next cell
'==========================
If Cells(2, 5) = "In Play" Then
If Cells(5, 25) = "" Then Cells(5, 25) = Cells(5, 15)
If Cells(6, 25) = "" Then Cells(6, 25) = Cells(6, 15)
End If
If Cells(2, 5) <> "In Play" And Cells(2, 6) <> "Suspended" Then
Cells(5, 25) = ""
Cells(6, 25) = ""
End If
Application.EnableEvents = True
End Sub
by Ilena » Thu Dec 30, 2010 10:25 pm
by osknows » Thu Dec 30, 2010 11:42 pm
by Ilena » Fri Dec 31, 2010 12:09 am
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.