Moderator: 2020vision
by Ilena » Mon Feb 14, 2011 11:46 pm
by osknows » Tue Feb 15, 2011 11:47 am
Option Explicit
Dim currentMarket As String
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If currentMarket <> [A1] Then getNumberOfRunners
getPrices
currentMarket = [A1]
calculateGreenUpStakes
Application.EnableEvents = True
End If
End Sub
by Ilena » Tue Feb 15, 2011 6:36 pm
by osknows » Tue Feb 15, 2011 8:45 pm
by Ilena » Tue Feb 15, 2011 11:37 pm
by osknows » Tue Feb 15, 2011 11:56 pm
Option Explicit
Dim currentMarket As String
Dim nrRunners As Integer
Private Sub Worksheet_Change(ByVal Target As Range)
Dim iRow As Integer
Dim iCol As Integer
Dim cell As Object
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If currentMarket <> [A1] Then getNumberOfRunners
currentMarket = [A1]
'=====
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("AK" & iRow).Value) Then Range("AK" & iRow).Value = 0
If IsEmpty(Range("AJ" & iRow).Value) Then Range("AJ" & iRow).Value = 1001
If IsEmpty(Range("AI" & iRow).Value) Then Range("AJ" & iRow).Value = Range("O" & iRow).Value
If Not IsEmpty(cell.Value) Then
Range("AH" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AJ" & iRow).Value And cell.Value > 1 Then Range("AJ" & iRow).Value = cell.Value
If cell.Value > Range("AK" & iRow).Value And cell.Value < 1001 Then Range("AK" & iRow).Value = cell.Value
End If
End If
' Update Max and Min Matched Values from first bet
If Cells(4, 3) = "|" And iCol = 15 And iRow > 4 And iRow < 7 Then
If IsEmpty(Range("AG" & iRow).Value) Then Range("AG" & iRow).Value = 0
If IsEmpty(Range("AF" & iRow).Value) Then Range("AF" & iRow).Value = 1001
If IsEmpty(Range("AE" & iRow).Value) Then Range("AE" & iRow).Value = Range("O" & iRow).Value
If Not IsEmpty(cell.Value) Then
Range("AD" & iRow).Value = Range("O" & iRow).Value
If cell.Value < Range("AF" & iRow).Value And cell.Value > 1 Then Range("AF" & iRow).Value = cell.Value
If cell.Value > Range("AG" & iRow).Value And cell.Value < 1001 Then Range("AG" & iRow).Value = cell.Value
End If
End If
Next cell
'====
calculateGreenUpStakes
Application.EnableEvents = True
End If
End Sub
Private Sub getNumberOfRunners()
Dim r As Integer
r = 5
nrRunners = 0
Do
nrRunners = nrRunners + 1
r = r + 1
Loop Until Cells(r, 1) = ""
End Sub
by Ilena » Wed Feb 16, 2011 12:35 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.