Moderator: 2020vision
by mak » Thu Jul 01, 2010 10:51 am
by osknows » Thu Jul 01, 2010 11:49 am
by osknows » Thu Jul 01, 2010 11:52 am
by mak » Thu Jul 01, 2010 3:10 pm
by osknows » Thu Jul 01, 2010 6:39 pm
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
r = 79 '(Column CA)
Z = 17
For fx = 5 To 55
If (Cells(fx, r).Value = "Selection") And (Cells(fx, r + 1).Value <> "OK") Then
Cells(fx, Z).Value = "BACK"
End If
If Cells(fx, Z).Value = "BACK" Then
Cells(fx, r + 1).Value = "OK"
End If
If (Range("cg1") <= 60) And Cells(fx, 85).Value = 1 And Cells(fx, r + 2).Value <> "OK_LAY" Then
Cells(fx, 20).Value = ""
Cells(fx, Z).Value = "LAY"
End If
If Cells(fx, Z).Value = "LAY" Then
Cells(fx, r + 2).Value = "OK_LAY"
End If
Next fx
If lastrace <> ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value Then
lastrace = ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value
Cells(fx, 17).Value = ""
Cells(fx, 80).Value = ""
Cells(fx, 81).Value = ""
End If
Application.EnableEvents = True
End If
End Sub
by mak » Thu Jul 01, 2010 6:55 pm
by alrodopial » Thu Jul 01, 2010 8:20 pm
Dim lastrace
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
r = 79 '(Column CA)
Z = 17
For fx = 5 To 55
If (Cells(fx, r).Value = "Selection") And (Cells(fx, r + 1).Value <> "OK") Then
Cells(fx, Z).Value = "BACK"
End If
If Cells(fx, Z).Value = "BACK" Then
Cells(fx, r + 1).Value = "OK"
End If
If (Range("cg1") <= 60) And Cells(fx, 85).Value = 1 And Cells(fx, r + 2).Value <> "OK_LAY" Then
Cells(fx, 20).Value = ""
Cells(fx, Z).Value = "LAY"
End If
If Cells(fx, Z).Value = "LAY" Then
Cells(fx, r + 2).Value = "OK_LAY"
End If
Next fx
If lastrace <> ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value Then
lastrace = ThisWorkbook.Sheets(Target.Worksheet.Name).Range("A1").Value
For fx = 5 To 55
Cells(fx, 17).Value = ""
Cells(fx, 80).Value = ""
Cells(fx, 81).Value = ""
Next fx
End If
Application.EnableEvents = True
End If
End Sub
by mak » Thu Jul 01, 2010 9:03 pm
by excelhasey » Thu Jul 01, 2010 9:35 pm
by mak » Thu Jul 01, 2010 9:42 pm
by alrodopial » Thu Jul 01, 2010 10:30 pm
mak wrote:working contentiously so it can't place the bets etr..
by mak » Fri Jul 02, 2010 5:26 am
by alrodopial » Fri Jul 02, 2010 11:10 am
by mak » Fri Jul 02, 2010 12:09 pm
alrodopial wrote:Did you put the
Dim lastrace
before the start of the code?
by alrodopial » Fri Jul 02, 2010 3:08 pm
mak wrote:It is very hard for me to understand this variables.
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.