Moderator: 2020vision
by bolpx001 » Wed Apr 22, 2009 1:04 am
by alrodopial » Wed Apr 22, 2009 5:59 am
Sub RESULTS()
Sheets("RPS").Select
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.racingpost.com/horses/result_runners_index.sd?r_date=2009-02-15" _
, Destination:=Range("A1"))
.Name = "result_runners_index.sd?r_date=2009-01-20"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = True
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
by bolpx001 » Wed Apr 22, 2009 11:47 pm
r_date=2009-02-15" _
.Name = "result_runners_index.sd?r_date=2009-01-20"
by Ian » Thu Apr 23, 2009 8:53 am
by KevinTHFC » Thu Apr 23, 2009 8:18 pm
bolpx001 wrote:Many many thanks, this is even better (and faster) than what I was looking for. I cut and pasted the code and it ran perfectly.
But can I ask why are there two dates in the coder_date=2009-02-15" _
.Name = "result_runners_index.sd?r_date=2009-01-20"
What is the signifance of the 2009-01-20 date
Many thanks again - Paul
by bolpx001 » Sun Apr 26, 2009 2:11 am
Sub RESULTS()
numDates = Application.InputBox("Enter Number of Dates to be processed")
ORGnumDates = numDates
getDate = Range(Sheets("dates").Cells(1, 1), Sheets("dates").Cells(1, 1)).Resize(numDates, 1)
' set starting position
Sheets("RPS").Select
r1 = 11
C1 = 1
Do While numDates > 0
Range(Sheets("RPS").Cells(r1, 1), Sheets("RPS").Cells(r1, 1)) = getDate(numDates, 1)
Connect = "URL;http://www.racingpost.com/horses/result_runners_index.sd?r_date=" & getDate(numDates, 1)
r1 = r1 + 1
With ActiveSheet.QueryTables.Add(Connection:=Connect, Destination:=Range(Cells(r1, C1), Cells(r1, C1)))
.Name = "result_runners_index.sd?r_date=2009-01-20"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = True
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
' move to next recordd
numDates = numDates - 1
' find next position for data
r1 = Cells.SpecialCells(xlCellTypeLastCell).Row + 2
Mess1 = ORGnumDates - numDates & " of " & ORGnumDates & " Processed"
' Prevent overflow
If r1 > 60000 Then
Mess1 = ORGnumDates - numDates & " of " & ORGnumDates & " Processed"
numDates = 0
End If
Loop
x = MsgBox(Mess1)
End Sub
by bolpx001 » Mon Apr 27, 2009 12:24 am
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.