Excel macro stops recording dynamic data after 60 records

Please post any questions regarding the program here.

Moderator: 2020vision

Excel macro stops recording dynamic data after 60 records

Postby errolc » Mon Oct 17, 2022 12:35 pm

Hi

First experience - excellent app.

Am recording race odds for all runners every second using Excel 365 VBA, (health warning. Novice VBA status.

Have transposed Bet Assistant vertical data to a horizontal range (using formulae). This range is then copied to data recording area - the recording drops down a row every tim.

Works just fine, but.

It just stops after has recorded 60 rows ie 60 seconds.

The macro has no time or loop limitations.

[color=#0000BF]Sub ValueStore()
Dim dTime As Date
Dim AF(700) As Variant
Dim AG(700) As Variant

These are all named ranges in the 'data' area where odds are recorded. Span 600 rows.
Dim AX(700) As Variant
Dim AY(700) As Variant
Range("AF" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("B28").Value
Range("AG" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("C28").Value
Range("AH" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("D28").Value
Range("AI" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("E28").Value
Range("AJ" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("F28").Value
Range("AK" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("G28").Value
Range("AL" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("H28").Value
Range("AM" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("I28").Value
Range("AN" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("J28").Value
Range("AO" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("K28").Value
Range("AP" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("L28").Value
Range("AQ" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("M28").Value
Range("AR" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("N28").Value
Range("ASS" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("O28").Value
Range("AT" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("P28").Value
Range("AU" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("Q28").Value
Range("AV" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("R28").Value
Range("AW" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("S28").Value
Range("AX" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("T28").Value
Range("AY" & Cells(Rows.Count).Row).End(xlUp).Offset(1, 0).Value = Range("U28").Value
Call StartTimer
End Sub

Sub StartTimer()
dTime = Now + TimeValue("00:00:01")
Application.OnTime dTime, "ValueStore", Schedule:=True
End Sub[/color]

Is the above all silly?

Is there an Excel setting I should tweak?

I can't find a solution on the web, although another guy had the same problem using a different data source and app. The original script writer was baffled.

Thanks - Errol
errolc
 
Posts: 2
Joined: Mon Oct 17, 2022 12:18 pm

Re: Excel macro stops recording dynamic data after 60 record

Postby errolc » Mon Oct 17, 2022 2:06 pm

All is now sorted thanks guys.
errolc
 
Posts: 2
Joined: Mon Oct 17, 2022 12:18 pm


Return to Help

Who is online

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