Use the below code - I had an error and also added a line to "ensure" that the getLiveShowURLS will be running -
 
 
I dont know if I will be able to test it today
If you get #VALUE errors in cells run the getLiveShowURLS sub manually, once
- Code: Select all
- Private Sub getLiveShowURLS()
 Dim t As String, p1 As Long, p2 As Long, c As Long
 Dim dayStr As String
 dayStr = Format(Now, "dd-mm-YYYY")
 t = getPage("http://www.sportinglife.com/racing/live-shows")
 p1 = 1
 Do
 p1 = InStr(p1, t, " <a href=" & Chr(34) & "/racing/live-shows/" & dayStr & "/")
 If p1 <> 0 Then
 p1 = p1 + 39
 p2 = InStr(p1, t, Chr(34))
 c = c + 1
 ReDim Preserve liveShowURLS(c)
 ReDim Preserve liveShowRaceTimes(c)
 liveShowURLS(c) = "http://www.sportinglife.com/racing/live-shows/" & dayStr & Mid(t, p1, p2 - p1)
 p2 = InStr(p1 - 300, t, ":")
 If p2 <> 0 Then liveShowRaceTimes(c) = Mid(t, p2 - 2, 5) Else liveShowRaceTimes(c) = ""
 Debug.Print liveShowURLS(c) & " " & liveShowRaceTimes(c)
 End If
 Loop Until p1 = 0
 If Not IsEmpty(liveShowURLS(1)) Then urlsLoaded = True
 End Sub



 
        	 
        	 
 
 - but hopefully I wont need to?
  - but hopefully I wont need to?   
 




