Moderator: 2020vision
by volcom64 » Sun Jun 16, 2013 4:53 pm
by osknows » Sun Jun 16, 2013 5:07 pm
Option Explicit
Dim currentMarket As String
Dim inPlay As Boolean
Dim inPlayTime As Date
Dim marketChanged As Boolean
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If [A1] <> currentMarket Then
currentMarket = [A1]
inPlay = False
marketChanged = False
End If
If [E2] = "In Play" Then
If Not inPlay Then
inPlay = True
inPlayTime = Now
End If
If [F2] = "Suspended" And Not marketChanged And DateDiff("s", inPlayTime, Now) > 20 Then
marketChanged = True
[Q2] = "-1"
End If
Else
inPlay = False
End If
If [Q2] = "" Then [Q2].Formula = "=SE(E(HORA(D2)=0;MINUTO(D2)<=1);0,5;10)"
Application.EnableEvents = True
End If
End Sub
by volcom64 » Sun Jun 16, 2013 6:05 pm
by osknows » Sun Jun 16, 2013 7:23 pm
by volcom64 » Sun Jun 16, 2013 7:46 pm
by osknows » Sun Jun 16, 2013 8:00 pm
by volcom64 » Sun Jun 16, 2013 8:02 pm
Option Explicit
Dim currentMarket As String
Dim inPlay As Boolean
Dim inPlayTime As Date
Dim marketChanged As Boolean
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If [A1] <> currentMarket Then
currentMarket = [A1]
inPlay = False
marketChanged = False
End If
If [E2] = "In Play" Then
If Not inPlay Then
inPlay = True
inPlayTime = Now
End If
If [F2] = "Suspended" And Not marketChanged And DateDiff("s", inPlayTime, Now) > 20 Then
marketChanged = True
[Q2] = "-1"
End If
Else
inPlay = False
End If
If Range("Q2").Value = "" Or IsEmpty(Range("Q2").Value) Then Range("Q2").Formula = "=IF(AND(HOUR(D2)=0,MINUTE(D2)<=1),0.5,10)"
Application.EnableEvents = True
End If
End Sub
by volcom64 » Mon Jun 17, 2013 11:09 pm
by osknows » Tue Jun 18, 2013 12:26 am
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
[B1] = "=A1"
Application.EnableEvents = True
End Sub
by volcom64 » Tue Jun 18, 2013 12:51 am
by alrodopial » Tue Jun 18, 2013 8:59 am
volcom64 wrote:Thanks for the help, probably everything is working now, but I will test tomorrow.
Look what happens when I use your program "Record Playback v1.0":
I Link to BA on MA1 sheet and i get the same-error:
http://imageshack.us/photo/my-images/835/plr5.jpg/
Any ideas? Sorry for all questions.
Thanks
by volcom64 » Tue Jun 18, 2013 9:57 am
by osknows » Tue Jun 18, 2013 10:36 am
by volcom64 » Tue Jun 18, 2013 11:05 am
osknows wrote:If installing the English version doesn't help, have a look at this http://akbaraji.wordpress.com/2012/05/2 ... -csv-file/
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.