ref

Please post any questions regarding the program here.

Moderator: 2020vision

ref

Postby speedomes » Thu Jul 31, 2014 1:06 pm

Hi fellas, I am using the latest beta version and have the sample sheet getAllTradedVolume() COM function
Things go okay then all of a sudden I get a Run time error (6) overflow error. When I his debug this line is the issue

Cells(r, 29).Value = Round((totalProfit / totalTraded) + 1, 2)

Has anyone had this and if so did you sort it as I have to shut it all down and reload the spreadsheet.
I appreciate any help. By the way I really only have the very basic VB knowledge!
cheers
speedomes
 
Posts: 6
Joined: Thu Jul 31, 2014 1:00 pm

Re: ref

Postby speedomes » Thu Jul 31, 2014 2:51 pm

Thought I'd mention it mostly happens when clicking on another race
speedomes
 
Posts: 6
Joined: Thu Jul 31, 2014 1:00 pm

Re: ref

Postby osknows » Thu Jul 31, 2014 4:13 pm

Check that totalTraded<>0 before attempting the calc.
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Re: ref

Postby speedomes » Thu Jul 31, 2014 4:46 pm

Thanks for getting back to me. After the error when i hover over the offending line in debug it shows: totalProfit=0 and totalTraded=0
How do I check that totalTraded<>0 before attempting the calc?
Sorry if I sound like a complete newb, I am!
speedomes
 
Posts: 6
Joined: Thu Jul 31, 2014 1:00 pm

Re: ref

Postby osknows » Thu Jul 31, 2014 5:15 pm

Divide by zero is undefined so it's raising an error. Try replacing the line with

Code: Select all
If totalTraded = 0 Then
    Cells(r, 29).Value = 0
Else
    Cells(r, 29).Value = Round((totalProfit / totalTraded) + 1, 2)
End If
User avatar
osknows
 
Posts: 946
Joined: Wed Jul 29, 2009 12:01 am

Re: ref

Postby speedomes » Fri Aug 01, 2014 10:45 am

hi, many thanks. I'll give this a whirl and let you know. all the best,
Mike
speedomes
 
Posts: 6
Joined: Thu Jul 31, 2014 1:00 pm


Return to Help

Who is online

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