Autoselect and macros

Please post any questions regarding the program here.

Moderator: 2020vision

Autoselect and macros

Postby clinton » Fri Jun 26, 2009 1:35 pm

Hello

i have a trigger in an excel sheet. This is linked with BA, and what I need is running a macro that I wrote everytime BA autoselect a new race from my quicklist....
Can someone help me to do that? What is the code I can use?
clinton
 
Posts: 111
Joined: Mon Oct 22, 2007 12:25 pm

macro

Postby sjaak1943 » Sat Jun 27, 2009 2:15 pm

Hi,

You can start the macro, when the value in cell A1 changes.


Public sRaceDets As String

Private Sub Worksheet_Change(ByVal Target As Range)
' Only process whole updates
If Target.Columns.Count <> 16 Then Exit Sub

' Stop any further updates until we have completed
Application.EnableEvents = False

' Set-up workbook variables
Set wb1 = ThisWorkbook
Set ws1 = wb1.Sheets("sheet1")
Set ws2 = wb1.Sheets("sheet2")

' Check for a new race (reset variables if new race detected)
If ws2.Range("A1").Value <> sRaceDets Then
sRaceDets = ws2.Range("A1").Value


Your macro


Endif

Hope this helps.
sjaak1943
 
Posts: 174
Joined: Tue Oct 31, 2006 9:50 pm
Location: Schagen, the Netherlands

Postby clinton » Sat Jun 27, 2009 5:52 pm

ty very much I will test your code
clinton
 
Posts: 111
Joined: Mon Oct 22, 2007 12:25 pm


Return to Help

Who is online

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