Clear range when next market selected

Please post any questions regarding the program here.

Moderator: 2020vision

Clear range when next market selected

Postby vrupper » Fri Dec 15, 2023 12:25 pm

Hi all,

I'm learning VBA as I go along, and have started with the AutoReloadQuickpickList template, added some of the Place_Bets_Multi_Same_Selection formulas to get a sheet that I can paste all my selections into in the morning and allow BA to cycle through the Win markets for the day and place my bets.

One of my criteria is if the odds are drifting. I have a bit of code that copies the lay odds if the timer in S1 gets to 900 seconds from the off into range AG5:AG55.

Obviously for the next market I need this range to be cleared, how do I trigger the code below when the market changes?

Code: Select all
Worksheets("Sheet1").Range("AG5:AG50").Clear
vrupper
 
Posts: 6
Joined: Mon Sep 27, 2021 9:16 am

Re: Clear range when next market selected

Postby vrupper » Fri Dec 15, 2023 3:19 pm

All sorted with a bit of testing.

I added to my copy and paste code to clear contents if the time left before the off was greater than 15mins and put a counta formula on the column so that once they are cleared it stops the process running continuously.

Thanks
vrupper
 
Posts: 6
Joined: Mon Sep 27, 2021 9:16 am


Return to Help

Who is online

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