reload quick pick list excel sheet

Please post any questions regarding the program here.

Moderator: 2020vision

reload quick pick list excel sheet

Postby andrej » Wed Dec 21, 2011 7:39 am

Hi, I am trying to run the autoreloadquickpicklist sheet an I have a problem. I do not want to reload the sheet at midnight but say ar 3am. so I change the vba to following:


Public triggerQuickPickListReload As Boolean
Public triggerFirstMarketSelect As Boolean

Public Sub loadQuickPickList()
triggerQuickPickListReload = True
Application.OnTime TimeValue("03:00:00"), "loadQuickPickList"
End Sub

the problem is that it does not do anything at all. (I have tripple checked if the macros are enabled, ect.)

any I deas what could be wrong?

thank you.
Andrej
andrej
 
Posts: 42
Joined: Tue Aug 24, 2010 6:59 am
Location: SLOVAKIA

Postby GaryRussell » Wed Dec 21, 2011 7:57 am

The initial auto reload time is set when the workbook first opens. Did you also change it there?

Select "ThisWorkbook" in the code editor and change the code there to read as follows.

Code: Select all
Private Sub Workbook_Open()
    Application.OnTime TimeValue("03:00:00"), "loadQuickPickList"
End Sub


Close and re-open the workbook after making the change so that the new time is set when the workbook opens.
User avatar
GaryRussell
Site Admin
 
Posts: 9872
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby andrej » Wed Dec 21, 2011 8:32 am

Thank you Gary, works perfectly. I did not realize the "ThisWorkbook" also holds part of the code.

thank you
andrej
 
Posts: 42
Joined: Tue Aug 24, 2010 6:59 am
Location: SLOVAKIA


Return to Help

Who is online

Users browsing this forum: Google [Bot] and 71 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.