Moderator: 2020vision
by vanbuuts » Fri May 01, 2015 5:35 pm
by Captain Sensible » Fri May 01, 2015 6:31 pm
by vanbuuts » Fri May 01, 2015 7:42 pm
by Captain Sensible » Fri May 01, 2015 7:50 pm
by vanbuuts » Fri May 01, 2015 7:53 pm
Sub Start()
StartTime = Timer
Do While Timer - StartTime <= 3
DoEvents
Loop
[AA5] = "=RC[-12]"
Range("AA5").Copy
Range("AA5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
StartTime = Timer
Do While Timer - StartTime <= 3
DoEvents
Loop
[AB5] = "=RC[-13]"
Range("AB5").Copy
Range("AB5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
StartTime = Timer
Do While Timer - StartTime <= 3
DoEvents
Loop
[AC5] = "=RC[-14]"
Range("AC5").Copy
Range("AC5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
StartTime = Timer
Do While Timer - StartTime <= 3
DoEvents
Loop
[AD5] = "=RC[-15]"
Range("AD5").Copy
Range("AD5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
StartTime = Timer
Do While Timer - StartTime <= 3
DoEvents
Loop
[AE5] = "=RC[-16]"
Range("AE5").Copy
Range("AE5").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
StartTime = Timer
Do While Timer - StartTime <= 3
DoEvents
Loop
Range("AA5:AE5").ClearContents
End Sub
by Captain Sensible » Fri May 01, 2015 8:01 pm
by vanbuuts » Fri May 01, 2015 8:35 pm
by vanbuuts » Fri May 01, 2015 10:15 pm
Captain Sensible wrote:Haven't time to look at the code now, the sheet was in this thread http://gruss-software.co.uk/forum/viewt ... ata#p46331
Here http://www.mediafire.com/download/oaj9a ... Book1.xlsm
Might give you some ideas
by Captain Sensible » Sat May 02, 2015 1:50 pm
If Range("AA4").Value + Range("AB1").Value <= Time() Then
Range("AB4:AE60").Value = Range("AA4:AD60").Value
Range("AA5:AA60").Value = Range("F5:F60").Value
Range("AA4").Value = Time()
End If
by Captain Sensible » Sat May 02, 2015 2:05 pm
by vanbuuts » Sat May 02, 2015 3:08 pm
by Captain Sensible » Sat May 02, 2015 3:47 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Static MyMarket As Variant
Dim switched As String
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [A1].Value = MyMarket Then
If Range("AA4").Value + Range("AB1").Value <= Time() Then
Range("AB4:AE60").Value = Range("AA4:AD60").Value
Range("AA5:AA60").Value = Range("O5:O60").Value
Range("AA4").Value = Time()
End If
Else
MyMarket = [A1].Value
Worksheets("Sheet1").Range("AA4:AE60").Value = ""
switched = "No"
End If
If Application.WorksheetFunction.IsText(Range("D2")) And switched = "No" _
Or Worksheets("Sheet1").Range("D2").Value <= TimeValue("00:00:01") And switched = "No" Then
switched = "Yes"
GoTo Switch_Market
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
Exit Sub
Switch_Market:
Range("Q2").Value = -1
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by vanbuuts » Sat May 02, 2015 4:03 pm
by vanbuuts » Sat May 02, 2015 4:11 pm
by Captain Sensible » Sat May 02, 2015 4:12 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Static MyMarket As Variant
Static switched As Variant
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [A1].Value = MyMarket Then
Range("AF3").Value = switched
If Range("AA4").Value + Range("AB1").Value <= Time() Then
Range("AB4:AE60").Value = Range("AA4:AD60").Value
Range("AA5:AA60").Value = Range("O5:O60").Value
Range("AA4").Value = Time()
End If
Else
MyMarket = [A1].Value
Worksheets("Sheet1").Range("AA4:AE60").Value = ""
switched = "No"
End If
If Application.WorksheetFunction.IsText(Range("D2")) And switched = "No" _
Or Worksheets("Sheet1").Range("D2").Value <= TimeValue("00:00:01") And switched = "No" Then
switched = "Yes"
GoTo Switch_Market
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
Exit Sub
Switch_Market:
Range("Q2").Value = -1
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
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.