clear the results page at midnight with AutoReloadQuickpickL

Please post any questions regarding the program here.

Moderator: 2020vision

clear the results page at midnight with AutoReloadQuickpickL

Postby dflowe » Tue Jul 26, 2016 8:02 am

Maybe Garry can help.....
I am trying to AutoReloadQuickpickList and clear the results page.
I have tried several ideas see thread dflowe
now adding the line Worksheets("Sheet2").Range("A2:F200").Value = "" will not clear sheet 2 but
adding Worksheets("Sheet3").Range("A2:F200").Value = "" will work and sheet 3 is cleared, so the code works
but somthing is stopping the clear for the sheet 2 that is tied to bet ass as the results page.

Is there something else i have to do to clear the results page???????????????

regards
Dave
dflowe
 
Posts: 181
Joined: Sat Dec 31, 2005 11:41 am
Location: Midlands

Re: clear the results page at midnight with AutoReloadQuickp

Postby MarkRussell » Tue Jul 26, 2016 8:14 am

Hi,

There is a trigger for clearing the Results Sheet.

Put -7 in cell Q2

Regards,
Mark
User avatar
MarkRussell
Site Admin
 
Posts: 1793
Joined: Tue Feb 20, 2007 6:38 pm
Location: Birmingham

Re: clear the results page at midnight with AutoReloadQuickp

Postby dflowe » Tue Jul 26, 2016 8:18 am

oh bugger, missed that, sorry Mark, thanks for the answer...............
Dave
dflowe
 
Posts: 181
Joined: Sat Dec 31, 2005 11:41 am
Location: Midlands

Re: clear the results page at midnight with AutoReloadQuickp

Postby dflowe » Tue Jul 26, 2016 10:45 am

will this work?

If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
Range("Q2").Value = -5
Range("Q2").Value = -7
ta
Dave
dflowe
 
Posts: 181
Joined: Sat Dec 31, 2005 11:41 am
Location: Midlands

Re: clear the results page at midnight with AutoReloadQuickp

Postby bolpx001 » Tue Jul 26, 2016 2:54 pm

Hi Dave- Maybe i9t is just a typo but why are you setting q2 to -5 and then immediately setting it to -7 - Paul

If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
Range("Q2").Value = -5
Range("Q2").Value = -7
bolpx001
 
Posts: 297
Joined: Sat Nov 19, 2005 4:30 am
Location: Dublin, Ireland

Re: clear the results page at midnight with AutoReloadQuickp

Postby dflowe » Tue Jul 26, 2016 3:05 pm

[quote="bolpx001"]Hi Dave- Maybe i9t is just a typo but why are you setting q2 to -5 and then immediately setting it to -7 - Paul

If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
Range("Q2").Value = -5
Range("Q2").Value = -7


to set the first runner in the qpl and then clear the results page i hope......but i may have to add some more code....thats why i posted it......hoping someone would say yay or nay
dave
dflowe
 
Posts: 181
Joined: Sat Dec 31, 2005 11:41 am
Location: Midlands

Re: clear the results page at midnight with AutoReloadQuickp

Postby bolpx001 » Tue Jul 26, 2016 3:55 pm

Hi Dave, I think you need to let the system process Q2=-5 and on the next refresh set Q2=-7 - best regards Paul
bolpx001
 
Posts: 297
Joined: Sat Nov 19, 2005 4:30 am
Location: Dublin, Ireland

Re: clear the results page at midnight with AutoReloadQuickp

Postby dflowe » Tue Aug 02, 2016 12:53 pm

If anyone is interested this works........................
in the module...............
Public triggerQuickPickListReload As Boolean
Public triggerFirstMarketSelect As Boolean
Public triggerClearResults As Boolean

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

and in the sheet.....................

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
Application.EnableEvents = False
If triggerQuickPickListReload Then
triggerQuickPickListReload = False
Range("Q2").Value = -3.1
triggerClearResults = True
Else
If triggerClearResults Then
triggerClearResults = False
Range("Q2").Value = -5
triggerFirstMarketSelect = True
Else
If triggerFirstMarketSelect Then
triggerFirstMarketSelect = False
Range("Q2").Value = -7
End If
End If
End If
Application.EnableEvents = True
End If
End Sub
dflowe
 
Posts: 181
Joined: Sat Dec 31, 2005 11:41 am
Location: Midlands


Return to Help

Who is online

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