Cycling Through Pick List

Please post any questions regarding the program here.

Moderator: 2020vision

Cycling Through Pick List

Postby jrarmstrong » Sat Jan 14, 2012 12:20 pm

Hi,

I have added the code below to the Place Bets sheet to cycle through the quick pick list at 10 second intervals using the Q2 -1 trigger.

It works but seems quite cumbersome and wondered if there is anything I should be doing to make it more efficient.

The aim is to cycle through all football markets and place bets if criteria are met. Often the market loads up in BA but takes quite a long time to replicate in Excel. It sometimes has not replicated before the next 10 second insertion of -1 in Q2.

Thanks,

James

Code: Select all
Option Explicit
   
Public runThem As Boolean
   
Sub start()
    runThem = True
    Call MyMacro
End Sub
   
Sub stop()
    runThem = False
End Sub
   
Sub startORstop()
    runThem = Not (runThem)
    Call MyMacro
End Sub
   
Sub MyMacro()
If runThem Then
        With Sheets("Market").Range("Q2")
        Application.EnableEvents = False
        .Value = --(Not (.Value))
        Application.EnableEvents = True
    End With
    Application.StatusBar = Time
   
    Application.OnTime Now + TimeValue("00:00:10"), "MyMacro"
End If
End Sub
jrarmstrong
 
Posts: 54
Joined: Fri Sep 23, 2011 6:27 pm

Postby mak » Sat Jan 14, 2012 2:01 pm

hi this is from Captain here
http://www.gruss-software.co.uk/forum/v ... php?t=5124


Dim counter As Currency

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count <> 16 Then Exit Sub

counter = counter + 1

If counter > 10 And [J3].Value = "L" Then
counter = 0
[Q2].Value = -5
ElseIf counter > 10 Then
counter = 0
[Q2].Value = -1
End If


End Sub
mak
 
Posts: 1086
Joined: Tue Jun 30, 2009 8:17 am

Postby jrarmstrong » Wed Jan 18, 2012 9:36 am

Thanks mac i'll give it a go
jrarmstrong
 
Posts: 54
Joined: Fri Sep 23, 2011 6:27 pm


Return to Help

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 58 guests

Sports betting software from Gruss Software


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.