Suggestions Please

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

Moderator: 2020vision

Suggestions Please

Postby Shaun » Thu Apr 16, 2009 3:10 pm

I am in need of some help, i know what i want my excel sheet to do but not sure how to get it to do it, i will explain.

I am betting mulltiple runners in a race, normally 3 but sometimes 4 or 2 i am running an allup series over 4 races if the selection losses i stay on 1 unit if the selection wins i go to 2 units and so on.

Each venue has it's own sheet, if i stayed on the same number of bets i would not have a problem i could judt check for RESULT_WON
or RESULT_LOST in F2 to F4 of result sheet, but as the number of bets changes i need to know how many bets to check for on the result.

I was thinking that maybe when the results are known the profit loss could be worked out and recorded, and just before the next bets are due to be placed the results sheet could be cleared ready for the new bets.

A macro could record the info in a cell that would only change when the macro ran again and another macro could clear the shett at a particular time before the next bet is placed.
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby Shaun » Fri Apr 17, 2009 3:52 am

I think i found a solution to my problem but i need a code change in this VBA and as i am clueless to VBA i wonder if you could help

I have made a small change myself where the code is looking in cell K1 but i don't want to clear cells when the market changes i want it to clear cells when it see the word "clear"


Code: Select all
Private Sub Worksheet_Calculate()
Static MyMarket As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [K1].Value = MyMarket Then
GoTo Xit
Else
MyMarket = [K1].Value
Range("A2:F10").Value = ""
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub

Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby Shaun » Fri Apr 17, 2009 8:37 am

I may have found solution to problem

Code: Select all
Private Sub Worksheet_Calculate()
Static MyMarket As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [K1].Value = MyMarket Then
GoTo Xit
Else
[I1] = [I1] + [Sum(I2:I6)]
MyMarket = [K1].Value
Range("A2:F6").Value = ""
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby Shaun » Sat Apr 18, 2009 6:28 am

I got the above code to do what i want but now i have another problem.

If i back 3 runners in the first race and then have the results cleared before putting on the next bets when it changes to the next race all past results are imported to the Results sheet even thought i have cleared it.

Does anyone know how i can stop this happening so just the last set of results are listed.
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby dgs2001 » Sat Apr 18, 2009 9:00 am

Shaun

A "-7" placed in cell Q2 will stop the results list being repopulated, you will still have to clear it.

Duncan
User avatar
dgs2001
 
Posts: 334
Joined: Thu Apr 05, 2007 4:53 pm
Location: The Home Of National Hunt

Postby Shaun » Sat Apr 18, 2009 10:26 am

I have made changes to the selections so only 3 can ever be bet on or no race, the main problem i have with this macro it is activated by a timer when it sees the time it will record the info, problem is it records it twice as it passes by the time how can i solve this and just record it once


Code: Select all
Private Sub Worksheet_Calculate()
Static MyMarket As Variant
Application.EnableEvents = False
Application.Calculation = xlCalculationManual
If [M1].Value = MyMarket Then
GoTo Xit
Else
[K1] = [K1] + [Sum(J1)]
MyMarket = [M1].Value
End If
Xit:
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
End Sub

Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia

Postby Shaun » Sat Apr 18, 2009 1:25 pm

Problem solved , i just changed the way i do things.
Shaun
 
Posts: 435
Joined: Fri May 09, 2008 11:11 pm
Location: Kellerberrin, Western Australia


Return to Discussion

Who is online

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