Multiple bets placed all at once cause ERROR code in Bet Ref

Please post any questions regarding the program here.

Moderator: 2020vision

Postby osknows » Thu Apr 15, 2010 11:08 pm

The worksheet change event fires when the worksheet changes and the cell/ranges that have changed are picked up in the 'Target' range object.

BA updates excel with 2 different refreshes, one for prices and one for balance updates etc

For price updates 16 columns are updated (cols A:P); therefore 'If Target.Columns.Count <> 16 Then Exit Sub' essentially checks if BA has refreshed prices rather than you just changing the odd cell. If BA has refreshed then Target.Columns.Count =16 and the code below runs otherwise it exits the VBA Subroutine

you can use either...

If Target.Columns.Count <> 16 Then Exit Sub

or

If Target.Columns.Count = 16 Then
'run code
End If
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Postby xraymitch » Fri Apr 16, 2010 5:58 am

If Target.Columns.Count <> 16 Then Exit Sub

My previous post wasn't a request, rather it was a thank you as I had come across your explanation earlier. Should have made myself clearer.

:oops:

Cheers though,

8)
xraymitch
 
Posts: 410
Joined: Wed Jun 25, 2008 7:06 am
Location: UK

Postby osknows » Fri Apr 16, 2010 12:38 pm

Sorry, I should have read it properly :)

Os
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Previous

Return to Help

Who is online

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