Moderator: 2020vision
by danjuma » Tue Jul 28, 2009 8:56 pm
by danjuma » Wed Jul 29, 2009 10:55 am
by osknows » Wed Jul 29, 2009 2:03 pm
by danjuma » Wed Jul 29, 2009 2:52 pm
by osknows » Wed Jul 29, 2009 11:37 pm
by danjuma » Thu Jul 30, 2009 9:40 am
by jokerjoe » Thu Jul 30, 2009 9:41 am
Dim TEMP as Variant
TEMP = Range(...)
' calculations here, eg FOR NEXT loop generates TEMP2 array
range(...) = TEMP2
by danjuma » Thu Jul 30, 2009 11:37 am
jokerjoe wrote:It's also faster to read a whole block of cells into an array and perform calculations on that array, and then write back an array to a range. There's a performance hit with every read to and from a worksheet and VBA, doing it that way cuts it down to two operations.
eg
- Code: Select all
Dim TEMP as Variant
TEMP = Range(...)
' calculations here, eg FOR NEXT loop generates TEMP2 array
range(...) = TEMP2
by osknows » Thu Jul 30, 2009 12:19 pm
jokerjoe wrote:It's also faster to read a whole block of cells into an array and perform calculations on that array, and then write back an array to a range. There's a performance hit with every read to and from a worksheet and VBA, doing it that way cuts it down to two operations.
eg
- Code: Select all
Dim TEMP as Variant
TEMP = Range(...)
' calculations here, eg FOR NEXT loop generates TEMP2 array
range(...) = TEMP2
Application.EnableEvents = False
Cells(2, 10).Value = "U" 'updates balance and exposure
Set rng = Range("h5:az55")
strArray = rng
For i = 1 To UBound(strArray)
Select Case strArray(i, 44)
Case "", Is > strArray(i, 1)
strArray(i, 45) = strArray(i, 1)
Case Else
strArray(i, 45) = strArray(i, 44)
End Select
Next i
Range("ay5:ay55").Value = Application.WorksheetFunction.Index(strArray, 0, 45)
Application.EnableEvents = True
by osknows » Thu Jul 30, 2009 12:22 pm
by osknows » Thu Jul 30, 2009 3:38 pm
by Norwegian Would » Tue Sep 29, 2009 5:43 pm
osknows wrote:I can't take credit for this as it's based on the 'Place bets on a selection of horses' template
but it does contain working code to track the lowest price of lay odds 1. Feel free to use and amend as required
http://www.mediafire.com/?sharekey=e2c0 ... b5aa27078d
by Ian » Tue Sep 29, 2009 8:40 pm
by Norwegian Would » Tue Sep 29, 2009 10:44 pm
Ian wrote:Tick the box(es) for the field(s) you want adding on the pop-up box when you start to log the prices in Excel.
by GaryRussell » Wed Sep 30, 2009 6:13 am
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.