Beta version - How are data sent to Excel (VBA problem)

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

Moderator: 2020vision

Beta version - How are data sent to Excel (VBA problem)

Postby fogosan » Fri Aug 10, 2007 7:33 pm

Hi,

I apologize, if somebody already discussed this problem.
I am working on macro in Excel (using BA Beta 1.0.0.53.). Basically, I try to copy data from place to another place in the same worksheet after refreshment from BA.

VBA code is like this:
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
CODE
Application.EnableEvents = True
End Sub

My problem is that, after BA refresh my data are copied 2 or 3 times. There is only one change from BA, but Excel makes copy operation more times.
Does somebody have experience with this situation? Is there somtheing wrong in my code?

Thanks

fogosan
User avatar
fogosan
 
Posts: 21
Joined: Fri Aug 25, 2006 2:46 pm
Location: Europe

Postby Ian » Fri Aug 10, 2007 9:26 pm

There are a number of posts about this

eg . http://gruss-software.co.uk/forum/viewt ... ght=target

You need to specify which in cells you want to see a change before the macro runs.
Ian
 
Posts: 834
Joined: Sat Nov 19, 2005 8:35 am
Location: Birmingham

Postby fogosan » Fri Aug 10, 2007 10:57 pm

Ian,

This magic line of code fixed my problem (If Target.Columns.Count <> 16 Then Exit Sub ).
Next time I will read all topics more deeply. :oops:

Thanks,
fogosan
User avatar
fogosan
 
Posts: 21
Joined: Fri Aug 25, 2006 2:46 pm
Location: Europe


Return to Discussion

Who is online

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