Moderator: 2020vision
by mak » Tue May 25, 2010 12:58 pm
by osknows » Tue May 25, 2010 1:24 pm
Dim nextracetrigger As Integer
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
'forward quick pick race on after race ended - NOTE CAN BE TURNED ON/OFF USING Y IN CELL Q1
With ThisWorkbook.Sheets(Target.Worksheet.Name)
'forward market if market suspended
If .Range("E2").Value = "In Play" And .Range("F2").Value = "Suspended" And UCase(.Range("Q1").Value) = "Y" And nextracetrigger = 0 Then
nextracetrigger = 1
lastrace = .Range("A1").Value
.Range("Q2").Value = -1
'forward market if market closed
ElseIf .Range("F2").Value = "Closed" And UCase(.Range("Q1").Value) = "Y" And nextracetrigger = 0 Then
nextracetrigger = 1
lastrace = .Range("A1").Value
.Range("Q2").Value = -1
'catches last closed market at end of day and updates balance
ElseIf .Range("F2").Value = "Closed" And UCase(.Range("Q1").Value) = "Y" And nextracetrigger = 1 Then
nextracetrigger = 2
.Range("Q2").Value = -6
'catches last closed market at end of day and resets refresh rate to 1
ElseIf .Range("F2").Value = "Closed" And UCase(.Range("Q1").Value) = "Y" And nextracetrigger = 2 Then
nextracetrigger = 2
.Range("Q2").Value = 1
End If
If lastrace <> .Range("A1").Value Then
nextracetrigger = 0
'macros to run when event changes
MyMacro1
MyMacro2
End If
End With
Application.EnableEvents = False
end if
end sub
by osknows » Tue May 25, 2010 1:27 pm
Dim nextracetrigger As Integer
Dim lastrace As String
by mak » Tue May 25, 2010 1:44 pm
by osknows » Tue May 25, 2010 1:57 pm
Dim lastrace As String
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If lastrace <> ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value Then
'macros to run when event changes
MyMacro1
MyMacro2
End If
End With
Application.EnableEvents = False
End If
End Sub
by mak » Tue May 25, 2010 2:12 pm
by mak » Tue May 25, 2010 3:57 pm
by osknows » Tue May 25, 2010 4:42 pm
Dim lastrace As String
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If lastrace <> ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value Then
lastrace = ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value Then
'macros to run when event changes
MyMacro1
MyMacro2
End If
Application.EnableEvents = False
End If
End Sub
by mak » Tue May 25, 2010 4:48 pm
by osknows » Tue May 25, 2010 4:57 pm
by mak » Tue May 25, 2010 5:04 pm
by osknows » Tue May 25, 2010 5:07 pm
by osknows » Tue May 25, 2010 6:33 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.