Sample sheet get traded volumn COM function

Please post any questions regarding the program here.

Moderator: 2020vision

Sample sheet get traded volumn COM function

Postby Roadhouse » Sun Feb 01, 2015 1:47 am

Hi Gary a few errors keep coming up with this sample sheet I downloaded I've set up the com one of the errors was

Run time error (6) overflow error. When I his debug this line is the issue
Cells(r, 29).Value = Round((totalProfit / totalTraded) + 1, 2)
Roadhouse
 
Posts: 98
Joined: Fri Mar 02, 2012 7:01 pm

Re: Sample sheet get traded volumn COM function

Postby Captain Sensible » Sun Feb 01, 2015 11:07 am

I'd guess there's no error trapping on the sheet and there are empty variables.
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm

Re: Sample sheet get traded volumn COM function

Postby Roadhouse » Mon Feb 02, 2015 6:40 pm

Hi, Captain do you have any suggestions on how it could be fixed ?
Roadhouse
 
Posts: 98
Joined: Fri Mar 02, 2012 7:01 pm

Re: Sample sheet get traded volumn COM function

Postby Captain Sensible » Mon Feb 02, 2015 7:02 pm

I don't use the sheet so no idea what it's doing, I can only guess totalProfit and totalTraded are being sent as 0 so totalProfit / totalTraded is throwing the error.

You could always bypass it with an IF

If totalTraded > 0 Then
Cells(r, 29).Value = Round((totalProfit / totalTraded) + 1, 2)
Else
Cells(r, 29).Value = " Something or other"
End If
User avatar
Captain Sensible
 
Posts: 2923
Joined: Sat Nov 19, 2005 2:29 pm


Return to Help

Who is online

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