Moving to next market after bet placed

Please post any questions regarding the program here.

Moderator: 2020vision

Moving to next market after bet placed

Postby vanbuuts » Sun May 29, 2016 11:27 am

Hi all, I have some code that moves to the next market if there is no bet - as below

But I want to move to the next market when my bet is placed, when I try and do so all the bet refernece from the last market are carried over and therefore no bet is placed on the new market, Please help how I can code this. When I add code to clear the bet reference it keeps placing the same bet on the original market without moving to the next

Code: Select all
Private Sub Worksheet_Change(ByVal Target As Range)
   
    If Target.Columns.Count = 16 Then
        Application.EnableEvents = False
       
       
        If [A1] <> currentMarket Then marketSelected = False
        currentMarket = [A1]
        If [S1] = "Switch" And Not marketSelected Then
            marketSelected = True
                        [Q2] = -1
            Clear
                   
         
      End If
             End If

End SUb
vanbuuts
 
Posts: 326
Joined: Thu Oct 16, 2014 8:55 pm

Re: Moving to next market after bet placed

Postby Captain Sensible » Sun May 29, 2016 2:07 pm

When you connect BA to the excel sheet do you have the options "Clear bet refs on auto selct market" and manual select market ticked?
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Re: Moving to next market after bet placed

Postby vanbuuts » Tue May 31, 2016 11:10 am

Good shout - saves using any VBA
vanbuuts
 
Posts: 326
Joined: Thu Oct 16, 2014 8:55 pm


Return to Help

Who is online

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