
Moderator: 2020vision
by eightball » Sun Nov 30, 2014 7:03 pm
by rourkem » Thu Dec 04, 2014 9:19 pm
by Captain Sensible » Fri Dec 05, 2014 1: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
Range("AA5:AA60").Value = Range("F5:F60").Value = ""
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by eightball » Mon Dec 08, 2014 8:03 pm
Captain Sensible wrote:Do you know how to use VBA, probably the easiest soltion just to stick in a routine as you can then just expand it as you go along.
I'm assuming you're trying to freeze the first price of the market you opened and not the prices from the prev market? The following should just stick a copy of the F5:F60 prices into AA5:AA60 when the market changes, i.e. the value in A1 changes
- Code: Select all
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
Range("AA5:AA60").Value = Range("F5:F60").Value = ""
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by Captain Sensible » Mon Dec 08, 2014 8:20 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
Range("AA5:AA60").Value = ""
Range("AA5:AA60").Value = Range("F5:F60").Value
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by Captain Sensible » Mon Dec 08, 2014 8:22 pm
by eightball » Mon Dec 08, 2014 8:59 pm
Captain Sensible wrote:Sorry about that just cut and pasted some code, it should have read as
Range("AA5:AA60").Value = Range("F5:F60").Value
So when the market changes it just put's the value of the F columns into AA column, probably wise to add Range("AA5:AA60").Value ="" before so it deletes any residual data from markets where there's more or less runners. I have something similar that just logs from a few minutes before the off so it's easy to tweak to your needs
- Code: Select all
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
Range("AA5:AA60").Value = ""
Range("AA5:AA60").Value = Range("F5:F60").Value
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by Captain Sensible » Mon Dec 08, 2014 10:31 pm
Private Sub Worksheet_Change(ByVal Target As Range)
Static MyMarket As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [A1].Value = MyMarket Then
GoTo Xit
Else
MyMarket = [A1].Value
Range("AA5:AA60").Value = Range("F5:F60").Value
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
by MiniBlueDragon » Tue Dec 09, 2014 9:52 pm
by Captain Sensible » Tue Dec 09, 2014 10:40 pm
MiniBlueDragon wrote:Hey Cap, you reckon this would be able to combine with the Excel "next market" cell (Q2?) to record odds, swap to next market and repeat (with range defined as a variable and a quick if check like IF Cell("AA5").Value = "" THEN range = "AB5") as an example?
by MiniBlueDragon » Tue Dec 09, 2014 11:07 pm
by Captain Sensible » Tue Dec 09, 2014 11:41 pm
by MiniBlueDragon » Thu Dec 11, 2014 2:38 am
by Captain Sensible » Thu Dec 11, 2014 11:24 am
by MiniBlueDragon » Thu Dec 11, 2014 12:01 pm
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.