Moderator: 2020vision
by hahaha » Tue Sep 15, 2015 1:18 pm
by Captain Sensible » Tue Sep 15, 2015 3:02 pm
by knot » Wed Sep 30, 2015 7:22 pm
Captain Sensible wrote:You pretty much need to use VBA to use the Q2 cell to it's full capabilities, plenty of examples of VBA to move markets on the site. Without knowing what your criteria is it's hard to advise any VBA code tbh.
Private Sub Worksheet_Calculate()
If Range("AA1").Value = "Next Event" Then
'Range("Q2").Value = -1
End If
End Sub
by knot » Wed Sep 30, 2015 7:29 pm
knot wrote:Captain Sensible wrote:You pretty much need to use VBA to use the Q2 cell to it's full capabilities, plenty of examples of VBA to move markets on the site. Without knowing what your criteria is it's hard to advise any VBA code tbh.
Would i be right in saying that this can only be achieved by using vba and worksheet_calculate ?
worksheet_change would need a manual cell change whereas worksheer_calculate would only need a formula change?
For example:
- Code: Select all
Private Sub Worksheet_Calculate()
If Range("AA1").Value = "Next Event" Then
'Range("Q2").Value = -1
End If
End Sub
by Daywalker » Thu Oct 01, 2015 11:03 pm
by knot » Fri Oct 02, 2015 7:01 pm
Daywalker wrote:The problem with that is BA is reading -1 twice. You need to add code to only enter -1 for one refresh.
Also if you look at the example worksheets, you'll notice some code relating to worksheet change and 16 column count and enable events false/true. These are all needed to keep things running smoothly.
Once you start playing about you'll probably get it wrong and stop vba half way through a program, then think it's frozen up. Whenever you use application events false, you need to use application events true to get vba to run again, even if you've stopped the program. You can do this by putting the application events true code in the immediate window and pressing enter.
Good luck, it's fun once you get going.
D
by Daywalker » Fri Oct 02, 2015 9:58 pm
by knot » Sat Oct 03, 2015 8:06 am
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub
Application.EnableEvents = False
If Range("AA1").Value = "Next Event" Then
Range("Q2").Value = -1
End If
Application.EnableEvents = True
End Sub
by Daywalker » Sat Oct 03, 2015 8:27 am
by Daywalker » Sat Oct 03, 2015 8:50 am
by Daywalker » Sat Oct 03, 2015 9:27 am
by knot » Sat Oct 10, 2015 9:54 pm
by GaryRussell » Tue Oct 13, 2015 11:16 am
by hahaha » Tue Oct 20, 2015 11:50 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.