VBA help with auto update quicklist

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

VBA help with auto update quicklist

Postby markg » Fri Jan 21, 2011 2:26 pm

Hi all,

I've recently been delving into the world of VBA and have tried to combine an adapted version of the Place_Bets sheet from here:

http://www.gruss-software.co.uk/forum/v ... php?t=3557

and the autoreloadquicklist macros from here:

http://www.gruss-software.co.uk/forum/v ... php?t=3558

However for some reason I can't get the macro to work - it appears to show no errors in running it but never actually ends up changing Q2 to the required numbers to run the quick list refresh. I've taken almost exactly the code from the macro example sheet (I think the only change I made was changing the time to 6am). The sheet I've made so far can be found here:

http://www.mediafire.com/?kxunoa4lbo5ng7o

Can anyone give me any tips as to what I need to do to the code/how to run gruss such that it will refresh the list daily?

Thanks very much for any help

Mark
markg
 
Posts: 12
Joined: Sun Oct 11, 2009 12:55 pm

Postby osknows » Sat Jan 22, 2011 1:53 am

Hi Mark,

I can't see anything obvious but what could be happening is possibly if you leave your worksheet overnight with the 'Selections' sheet activated then Q2 could be being written to the wrong sheet

try this instead in the Market Sheet and let us know if it works

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Columns.Count = 16 Then
        Application.EnableEvents = False
        With Sheets(Target.Worksheet.Name)
            If triggerQuickPickListReload Then
                triggerQuickPickListReload = False
                .Range("Q2").Value = -3
                triggerFirstMarketSelect = True
            Else
                If triggerFirstMarketSelect Then
                    triggerFirstMarketSelect = False
                    .Range("Q2").Value = -5
                End If
            End If
        End With
        Application.EnableEvents = True
    End If
End Sub
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby markg » Sun Jan 23, 2011 3:04 am

Oh yes - it was that simple, I had the code in the wrong sheet! Put it in the other one and it worked perfectly, thanks!
markg
 
Posts: 12
Joined: Sun Oct 11, 2009 12:55 pm


Return to Discussion

Who is online

Users browsing this forum: No registered users and 45 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.