Moderator: 2020vision
by MiniBlueDragon » Thu Dec 11, 2014 12:11 pm
by Captain Sensible » Thu Dec 11, 2014 12:44 pm
by Captain Sensible » Thu Dec 11, 2014 12:46 pm
by xiaonvren » Fri Dec 12, 2014 12:04 pm
by Joe68 » Sat Dec 13, 2014 9:31 am
by MiniBlueDragon » Tue Dec 16, 2014 3:48 pm
'Count number of races
numberRaces = Worksheets("Gruss_QuickPickList").Range(Worksheets("Gruss_QuickPickList").Range("A1"), Worksheets("Gruss_QuickPickList").Range("A65535").End(xlUp)).Count - 1
If In Doubt 1.4
Askamore Darsi 6.2
Lord Brendy 9.8
Volo Mio 26
Shackled N Drawn 1.92
Middle East Pearl 2.6
One Moment 10
Knockamany Bends 3.25
Lazy Sioux 3.6
Satellite Express 3.75
Cookie Ring 8.6
Bold Max 23
If In Doubt 1.11
Askamore Darsi 10
Lord Brendy 210
Volo Mio 85
If In Doubt 1.07
Askamore Darsi 10
Lord Brendy 160
Volo Mio 75
Shackled N Drawn 1.9
Middle East Pearl 2.64
One Moment 10
Knockamany Bends 3.3
Lazy Sioux 3.65
Satellite Express 3.7
Cookie Ring 8.6
Bold Max 23
Junius Brutus 4.3
My Teescomponents 4.9
Chitu 4.6
Along Came Theo 8.2
Bear Island Flint 8.8
Master Moon 10
The Peaky Blinder 46
Junius Brutus 4.3
My Teescomponents 4.9
Chitu 4.6
Along Came Theo 8.2
Bear Island Flint 8.8
by Captain Sensible » Tue Dec 16, 2014 5:12 pm
If Target.Columns.Count <> 16 Then Exit Sub
by MiniBlueDragon » Tue Dec 16, 2014 7:41 pm
Sub Button2_Click()
' Define all variables
Dim runningFlag As Variant
Dim numberRaces As Variant
Dim numberRunners As Variant
Dim lastCell As Variant
Dim pasteStartRow As Variant
Dim pasteEndRow As Variant
Dim i As Variant
' Switch off calculations to speed up routines
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
' Set running flag
runningFlag = 1
' Clear Existing Odds
Sheets("Odds").Range("A:B").Clear
' Set first paste row to 1
pasteStartRow = 1
'Select first race in Quick Pick List
Sheets("Gruss").Range("Q2").Value = "-5"
' Wait for sheet to refresh
Application.Wait (Now + TimeValue("00:00:03"))
'Count number of races
numberRaces = Worksheets("Gruss_QuickPickList").Range(Worksheets("Gruss_QuickPickList").Range("A1"), Worksheets("Gruss_QuickPickList").Range("A65535").End(xlUp)).Count - 1
' Start looping through races
For i = 1 To numberRaces
' Count the number of runners
Worksheets("Gruss").Range("F5").Select
lastCell = ActiveCell.End(xlDown).Row
numberRunners = lastCell - 4
' Set pasteEndRow
pasteEndRow = pasteStartRow + (numberRunners - 1)
' Copy runner names to Odds sheet
Worksheets("Gruss").Range("A5:A" & lastCell).Copy Destination:=Worksheets("Odds").Range("A" & pasteStartRow & ":A" & pasteEndRow)
' Copy runner odds to Odds sheet
Worksheets("Gruss").Range("F5:F" & lastCell).Copy Destination:=Worksheets("Odds").Range("B" & pasteStartRow & ":B" & pasteEndRow)
' Set row to next blank row
pasteStartRow = pasteStartRow + numberRunners
' Select next race from Quick Pick list
Sheets("Gruss").Range("Q2").Value = "-1"
' Wait for sheet to refresh
'Application.Wait (Now + TimeValue("00:00:05"))
Dim time1, time2
time1 = Now
time2 = Now + TimeValue("0:00:03")
Do Until time1 >= time2
DoEvents
time1 = Now()
Loop
Next i
' Reset variables
pasteStartRow = Null
pasteEndRow = Null
lastCell = Null
numberRunners = Null
numberRaces = Null
i = Null
runningFlag = 0
' Switch calculations back on
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by Captain Sensible » Tue Dec 16, 2014 8:52 pm
by MiniBlueDragon » Tue Dec 16, 2014 11:14 pm
by Captain Sensible » Wed Dec 17, 2014 12:33 am
by MiniBlueDragon » Wed Dec 17, 2014 5:30 pm
by Captain Sensible » Wed Dec 17, 2014 5:48 pm
Public runningFlag As Variant
Sub Button2_Click()
' Define all variables
.........................
End Sub
by MiniBlueDragon » Wed Dec 17, 2014 7:23 pm
by Captain Sensible » Wed Dec 17, 2014 7:40 pm
Private Sub Worksheet_Calculate()
Static MyMarket As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [A1].Value = MyMarket Then
GoTo Xit
Else
MyMarket = [A1].Value
End If
Xit:
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.