Recording football odds

Please post any questions regarding the program here.

Moderator: 2020vision

Recording football odds

Postby danjuma » Fri Oct 02, 2009 3:04 pm

Somebody uploaded a spreadsheet for recording football odds sometime ago. I have copied the VBA code from the sheet below. Unfortunately, the spreadsheet records just the match odds (1X2). It does not record or display properly when used to record other football markets like the CS etc.

Would any of you VBA whiz be kind enough to modify it so it could also record the odds for other markets, especially for the correct score market (even if that's the only one you could have time time to do).

Or, if someone knows of a sheet that does this already.

Many thanks.



Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Columns.Count = 16 Then

Application.EnableEvents = False

HT = Trim(Left(Sheets("Sheet1").Range("A1"), InStr(Sheets("Sheet1").Range("A1"), "v") - 1))
If HT <> Sheets("Sheet1").Range("C21").Value Then Sheets("Sheet1").Range("A21:IV65536").ClearContents

LR = Sheets("Sheet1").Range("A65536").End(xlUp).Row
AT = Trim(Mid(Sheets("Sheet1").Range("A1"), InStr(Sheets("Sheet1").Range("A1"), "v") + 1, InStr(Sheets("Sheet1").Range("A1"), "-") - InStr(Sheets("Sheet1").Range("A1"), "v") - 1))
ST = Trim(Mid(Sheets("Sheet1").Range("A1"), InStr(Sheets("Sheet1").Range("A1"), ":") - 2, 5))
CT = Time

If LR = 20 Then
AM_H = ""
AM_A = ""
AM_D = ""
Else
AM_H = Sheets("Sheet1").Range("P5").Value - Sheets("Sheet1").Range("R" & LR).Value
AM_A = Sheets("Sheet1").Range("P6").Value - Sheets("Sheet1").Range("AJ" & LR).Value
AM_D = Sheets("Sheet1").Range("P7").Value - Sheets("Sheet1").Range("BB" & LR).Value
End If

MyArray = Array(CT, ST, HT, "", Sheets("Sheet1").Range("B5"), Sheets("Sheet1").Range("C5"), Sheets("Sheet1").Range("D5"), Sheets("Sheet1").Range("E5"), Sheets("Sheet1").Range("F5"), Sheets("Sheet1").Range("G5"), Sheets("Sheet1").Range("H5"), Sheets("Sheet1").Range("I5"), Sheets("Sheet1").Range("J5"), Sheets("Sheet1").Range("K5"), Sheets("Sheet1").Range("L5"), Sheets("Sheet1").Range("M5"), Sheets("Sheet1").Range("O5"), Sheets("Sheet1").Range("P5"), AM_H)
Sheets("Sheet1").Range("A" & (LR + 1) & ":S" & (LR + 1)).Value = MyArray
MyArray = Array(AT, "", Sheets("Sheet1").Range("B6"), Sheets("Sheet1").Range("C6"), Sheets("Sheet1").Range("D6"), Sheets("Sheet1").Range("E6"), Sheets("Sheet1").Range("F6"), Sheets("Sheet1").Range("G6"), Sheets("Sheet1").Range("H6"), Sheets("Sheet1").Range("I6"), Sheets("Sheet1").Range("J6"), Sheets("Sheet1").Range("K6"), Sheets("Sheet1").Range("L6"), Sheets("Sheet1").Range("M6"), Sheets("Sheet1").Range("O6"), Sheets("Sheet1").Range("P6"), AM_A)
Sheets("Sheet1").Range("U" & (LR + 1) & ":AK" & (LR + 1)).Value = MyArray
MyArray = Array("Draw", "", Sheets("Sheet1").Range("B7"), Sheets("Sheet1").Range("C7"), Sheets("Sheet1").Range("D7"), Sheets("Sheet1").Range("E7"), Sheets("Sheet1").Range("F7"), Sheets("Sheet1").Range("G7"), Sheets("Sheet1").Range("H7"), Sheets("Sheet1").Range("I7"), Sheets("Sheet1").Range("J7"), Sheets("Sheet1").Range("K7"), Sheets("Sheet1").Range("L7"), Sheets("Sheet1").Range("M7"), Sheets("Sheet1").Range("O7"), Sheets("Sheet1").Range("P7"), AM_D)
Sheets("Sheet1").Range("AM" & (LR + 1) & ":BC" & (LR + 1)).Value = MyArray

Application.EnableEvents = True

End If

End Sub
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Postby alrodopial » Fri Oct 02, 2009 3:18 pm

This was my attempt to record odds .
If you can wait I'll post something similar in a few days when I'll have it finished.
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Re: Recording football odds

Postby alrodopial » Fri Oct 02, 2009 3:22 pm

danjuma wrote: especially for the correct score market


Trying to solve Slicer's mystery?
alrodopial
 
Posts: 1384
Joined: Wed Dec 06, 2006 9:59 pm

Re: Recording football odds

Postby danjuma » Fri Oct 02, 2009 3:42 pm

alrodopial wrote:
danjuma wrote: especially for the correct score market


Trying to solve Slicer's mystery?


Not that smart, just trying to record some data for the smart guys to play with. :wink:
User avatar
danjuma
 
Posts: 347
Joined: Mon Apr 21, 2008 4:17 pm

Re: Recording football odds

Postby Norwegian Would » Fri Oct 02, 2009 3:52 pm

alrodopial wrote:
danjuma wrote: especially for the correct score market


Trying to solve Slicer's mystery?


He he - Mr Slicer - gotta lotta peapuls thinkink! A bit uff a legund in 'is own time.


I luk forward to your post Big Alrod.....
User avatar
Norwegian Would
 
Posts: 43
Joined: Sat Jul 11, 2009 10:18 pm
Location: Bergen-by-the-Sea; Norway


Return to Help

Who is online

Users browsing this forum: Majestic-12 [Bot] and 41 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.

cron