3 times on_change if triggered to excel

Please post any questions regarding the program here.

Moderator: 2020vision

3 times on_change if triggered to excel

Postby Guentschi » Fri Jun 20, 2008 9:41 am

I have a problem with the on_change in Excel.

The only code is:

Private Sub Worksheet_Change(ByVal Target As Range)
MsgBox ("Change")
End Sub


I set the refresh rate to 20 secs. I get the messagebox three times every twenty seconds. Does anybody have the same problem, or what am I doing wrong?
I have the problem in Windows Vista and Windows XP.

With best regards
Guenter
Guentschi
 
Posts: 8
Joined: Wed Feb 27, 2008 9:30 am

Postby Guentschi » Fri Jun 20, 2008 9:45 am

I forgot to mention.
I have BA ver 1.1.0.14 Beta

Thanks
Guentschi
 
Posts: 8
Joined: Wed Feb 27, 2008 9:30 am

Postby GaryRussell » Fri Jun 20, 2008 10:57 am

It is because the worksheet is updated by Betting Assistant in 3 operations. You can limit your code to only execute on one of these updates by checking for the number of columns updated which is 16 when the prices are updated, example below.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Columns.Count = 16 Then
MsgBox "Change"
End If
End Sub
User avatar
GaryRussell
Site Admin
 
Posts: 9871
Joined: Fri Nov 18, 2005 8:09 pm
Location: Birmingham, UK

Postby Guentschi » Fri Jun 20, 2008 12:08 pm

Thanks for the quick reply.

Guenter
Guentschi
 
Posts: 8
Joined: Wed Feb 27, 2008 9:30 am


Return to Help

Who is online

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