OZmium Sports Betting and Horse Racing Forums

OZmium Sports Betting and Horse Racing Forums (http://forums.ozmium.com.au/index.php)
-   Horse Race Betting Systems (http://forums.ozmium.com.au/forumdisplay.php?f=10)
-   -   Statistics Rating Program (http://forums.ozmium.com.au/showthread.php?t=22143)

lomaca 29th November 2011 06:03 PM

Quote:
Originally Posted by M60
Hi Mate just need a little help..is there any easy way you could show me to import the horse s form to excel..and extract the info to my excel sheet to do all the cal.. auto..Thanks M60...
Search for "Shaun-Excel-automatic" or similar on this forum.

I'm sure he posted a, then, working version, even if it's not accessing the sites you want, it would still be a very useful start and easy to modify.

Hope it helps

Chrome Prince 29th November 2011 06:44 PM

http://tatts.com/tattsbet_help/info/xml-excel-example

This will work beautifully :)

Stix 29th November 2011 07:28 PM

Quote:
Originally Posted by Chrome Prince
Nice work Chrome!!

Shaun 29th November 2011 08:03 PM

I will post my current sheet in a short a time with instructions.

M60 29th November 2011 09:11 PM

Thanks lomaca
 
thanks for quick reply but need something in the KISS principle ...M60 hope Shaun see it...

M60 29th November 2011 09:22 PM

Thanks Stix
 
l'll be looking at that site some time tonight...just hope its easy to understand...for this old greyhair..took me months to get the excel talking but boy ..am pleased with the it..next challenge to make it talk to the form guide...

Shaun 29th November 2011 09:51 PM

1 Attachment(s)
Sorry to disappoint if you were after an easy fix, i don't know easy but may be able to help if you explain what you need.

Here is the sheet for anyone interested, is a bit complex but easy to follow as the flow of the program runs with the flow of macros.

Shaun 29th November 2011 10:05 PM

Oh, forgot to mention in the "Copy" and "Copy2" macro the part in red on this line needs to be changed.

fName = "F:\Files\Form Ratings 2010\Form Factor Ratings 2011" & Sheets("MainSheet").Range("AA16").text & ".txt"

it refers to where the file is stored, stick it in your C drive and replace the line with this.

fName = "C:\Form Factor Ratings 2011" & Sheets("MainSheet").Range("AA16").text & ".txt"

M60 30th November 2011 07:57 AM

EXCEL example
 
Hi Chrome Prince.....well l went o.k with the example writing every thing in it ...then took me a long while to do that button..which l found in the Devloper....manage to put the button on and then it all went pear shape....could you please email me a copy..for l spent hours trying to make it go pass the button stage no luck.....e-mail is blkscoutm606768@yahoo.com.au be much appreciate if you could..Thanking you M60

Stix 30th November 2011 11:30 AM

I'm getting a system error :(

System error -216697210

is the data still viable

Sub LoadRaceField()
Dim xmldoc As MSXML2.DOMDocument
Set xmldoc = New MSXML2.DOMDocument
xmldoc.async = False
xmldoc.Load ("http://tatts.com/pagedata/racing/2010/6/28/VR6.xml")
If (xmldoc.parseError.ErrorCode <> 0) Then
MsgBox ("An error has occurred: " & xmldoc.parseError.reason)
Else
Set runnerList = xmldoc.SelectNodes("//Runner")
Sheet1.Cells.Clear
For i = 0 To (runnerList.Length - 1)
Set runner = runnerList.Item(i)
Set runnerNumber = runner.Attributes.getNamedItem("RunnerNo")
Set runnerName = runner.Attributes.getNamedItem("RunnerName")
Set runnerWeight = runner.Attributes.getNamedItem("Weight")
Set riderName = runner.Attributes.getNamedItem("Rider")
If Not runnerNumber Is Nothing Then
Sheet1.Cells(i + 1, 1) = runnerNumber.Text
End If
If Not runnerName Is Nothing Then
Sheet1.Cells(i + 1, 2) = runnerName.Text
End If
If Not runnerWeight Is Nothing Then
Sheet1.Cells(i + 1, 3) = runnerWeight.Text
End If
If Not riderName Is Nothing Then
Sheet1.Cells(i + 1, 4) = riderName.Text
End If
Next
End If
End Sub


All times are GMT +10. The time now is 11:53 PM.

Powered by: vBulletin Version 3.0.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.