TPD-ON

Please post any questions regarding the program here.

Moderator: 2020vision

TPD-ON

Postby PennyFiddler » Fri Aug 15, 2025 10:09 am

Hi,

I have searched for a method to turn TPD on automatically in VBA and came across a couple of instances of Gary being quoted as saying you can do it by putting TPD-ON (no ") into Q2.

Well VBA seems to dislike the hyphen '-', and wont seem to allow it other than in quotes "TPD-ON" which doesnt work.

Is it correct that this function is working?

Ta
PennyFiddler
 
Posts: 18
Joined: Sat Jul 14, 2018 9:21 am

Re: TPD-ON

Postby GaryRussell » Fri Aug 15, 2025 10:34 am

Yes it should be working. I've not seen an issue with VBA complaining about the hyphen. Can you provide example code that causes the error?
User avatar
GaryRussell
Site Admin
 
Posts: 9914
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: TPD-ON

Postby PennyFiddler » Fri Aug 15, 2025 1:07 pm

Ermmm

Well yes I think it does work afterall as long as I put it in quotes.

But my rudimentary VBA skills have resulted in an infuriating logical birdsnest of calling macros that torture me, I can either have it change market or activate the TDP, not both.

When the market closed, it copies the data into another sheet through a macro that it runs with
Application.Run "CP_Click"
In that macro it ordinarily set the Q2 (i use named ranges but for this we shall call it Q2) with "-1"
Which in turn forced BA into the next market
Which then activates sheetA code to see theres been a change and calls NewEvent.OpenMarket macro that formats the sheet and sets refresh to 0.2

This all worked.Until.

I tried adding another macro Public Sub NextMarket() that I moved the "-1" to and changed the command in "CP_Click" to activate "TPD-ON" instead, then call NextMarket

And guess what?

I know its obviously not the right way, but it worked upto now
All I want ideally is to add a toggle button to my spreadsheet that I can click- On that will then turn all subsequent market's TPD on so I can leave it alone to run the rest of the day.
How might I do that....without continually swearing at chatGPT?

Sorry, I tried.
PennyFiddler
 
Posts: 18
Joined: Sat Jul 14, 2018 9:21 am

Re: TPD-ON

Postby alrodopial » Sat Aug 16, 2025 2:05 pm

PennyFiddler wrote:Which then activates sheetA code to see theres been a change and calls NewEvent.OpenMarket macro that formats the sheet and sets refresh to 0.2


you can set it to TPD-ON instead of 0.2
Range("Q2")="TPD-ON"
alrodopial
 
Posts: 1387
Joined: Wed Dec 06, 2006 9:59 pm


Return to Help

Who is online

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