code will not trigger

Please post any questions regarding the program here.

Moderator: 2020vision

code will not trigger

Postby SWV » Tue May 23, 2023 3:58 pm

Any reason as to why please? :?

Code: Select all
Option Explicit

Dim currentMarket As String
Private Sub worksheet_change(ByVal Target As Range)
Worksheets("Comp.").Calculate
 If Target.Columns.Count = 16 Then
    Application.EnableEvents = False
                                             
               
                      If Range("Q5") = "Back-IP" Then
                      Call LogSelection1
                                                                                       
                          If Range("Q6") = "Back-IP" Then
                      Call LogSelection2
                     
                       If Range("Q7") = "Back-IP" Then
                      Call LogSelection2
               
    End If
   Application.EnableEvents = True
End Sub

SWV
 
Posts: 61
Joined: Sat Aug 12, 2017 8:11 am

Re: code will not trigger

Postby GaryRussell » Tue May 23, 2023 4:08 pm

Since triggers are case sensitive when Betting Assistant reads them I assume you are passing the correct triggers to Betting Assistant. Therefore you have BACK-IP in the trigger column, but your VBA code is checking for Back-IP. This will not evaluate to equal. Your VBA code needs to check for BACK-IP, eg.
Code: Select all
If Range("Q5") = "BACK-IP" Then
User avatar
GaryRussell
Site Admin
 
Posts: 9695
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Re: code will not trigger

Postby SWV » Tue May 23, 2023 4:30 pm

GaryRussell wrote:Since triggers are case sensitive when Betting Assistant reads them I assume you are passing the correct triggers to Betting Assistant. Therefore you have BACK-IP in the trigger column, but your VBA code is checking for Back-IP. This will not evaluate to equal. Your VBA code needs to check for BACK-IP, eg.
Code: Select all
If Range("Q5") = "BACK-IP" Then


Ok thanks Gary.

For some reason when Q5 = BACK-IP it does not call LogSelection1macro.
SWV
 
Posts: 61
Joined: Sat Aug 12, 2017 8:11 am


Return to Help

Who is online

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