Smartgambler
Pro-Punter

Go Back   OZmium Sports Betting and Horse Racing Forums > Public Forums > General Topics
User Name
Password
Register FAQ Search Today's Posts Mark all topics as read

To advertise on these
forums, e-mail us.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd July 2011, 09:18 AM
bookend bookend is offline
Member
 
Join Date: Nov 2006
Posts: 60
Default Help with excel

Hi I'm having some problems with a excel program (method 260). It was working ok yesterday, now a message pops up when I try to run the macros "Run time error '9': Subscript out of range. I'm only still learning excel so any help would be appreciated. This sheet was originally posted here quite some time ago.
Below is the highlighted area when debugged;

End If
If Sheets("Horse").Cells(A, B) <> vbNullString Then
Races(C) = Sheets("Horse").Cells(A, 1) & Sheets("Horse").Cells(X - 1, B).Text
Time(C) = Sheets("Horse").Cells(A, B)
C = C + 1

Cheers Bookend
Attached Files
File Type: xls Method_260 Auto.xls (167.5 KB, 931 views)
Reply With Quote
  #2  
Old 2nd July 2011, 12:39 PM
moeee moeee is offline
Suspended
 
Join Date: Jan 1970
Location: Melbourne
Posts: 5,359
Default

There is a statement in the Definitions.

Global Time(1 To 100) As Variant

And your Time() has reached 101 so it messages you have gone over the range assigned, which is 100.

I have no idea , but I think this may mean the Program is restricted to 100 Races.

Did you ever run this program when there were more than 100 Races on the day?
You possibly have so there goes my thoughts
Reply With Quote
  #3  
Old 2nd July 2011, 12:53 PM
moeee moeee is offline
Suspended
 
Join Date: Jan 1970
Location: Melbourne
Posts: 5,359
Default

Try this.
It worked for me.

Go into the Macro's and clicl on edit.
Then click on the Declarations Tab.

Where it says Races (100) , change it to 200
And where it says Time (100) , change it to 200

Then save the Program as "Method 260 Modified".

I think that will get you by until Shaun or Woof43 or Kennedy91210 rolls up.
Reply With Quote
  #4  
Old 2nd July 2011, 12:55 PM
bookend bookend is offline
Member
 
Join Date: Nov 2006
Posts: 60
Default

Hi Moeee. Your probably right regarding going over the limit of races. I tried something different and it's working again. After opening macros with 'Alt & F8
I selected "method 260", then in the dropdown box below "open all work books"
I changed it to "method_260" and clicked run. I've been getting some good results with this so it maybe worth testing further.

Cheers

Bookend
Reply With Quote
  #5  
Old 2nd July 2011, 01:05 PM
moeee moeee is offline
Suspended
 
Join Date: Jan 1970
Location: Melbourne
Posts: 5,359
Default

Nice work bookend.

Ignore everything I suggested.

The only thing my idea did was get past the stumbling block , but it didn't run correctly at all.
Times and dates were totally wrong.
Reply With Quote
  #6  
Old 2nd July 2011, 01:14 PM
bookend bookend is offline
Member
 
Join Date: Nov 2006
Posts: 60
Thumbs up

Quote:
Originally Posted by moeee
Try this.
It worked for me.

Go into the Macro's and clicl on edit.
Then click on the Declarations Tab.

Where it says Races (100) , change it to 200
And where it says Time (100) , change it to 200

Then save the Program as "Method 260 Modified".

I think that will get you by until Shaun or Woof43 or Kennedy91210 rolls up.


Thanks Moeee. Got it.
Reply With Quote
  #7  
Old 2nd July 2011, 07:19 PM
Robot Robot is offline
Member
 
Join Date: Jan 2011
Posts: 27
Smile ROBOT

Hi Bookend.I have had the same problems and then lost the program be it my own fault. Thanks for re posting it.Like you i am new to this way of betting and have a few questions to ask you.Would you please e mail bailyhoo at yahoo dot com dot au. Looking forward to meeting you .Regards ROBOT
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



All times are GMT +10. The time now is 01:00 AM.


Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
©2008 OZmium Pty. Ltd. All rights reserved . ACN 091184655