Sub horsehkQP()
Dim A As Object
With CreateObject("InternetExplorer.Application")
.Visible = True
.Navigate "http://bet.hkjc.com/racing/pages/odds_wpq.aspx?date=19-06-2016&venue=ST&raceno=1"
Do While .Busy Or .readyState <> 4: DoEvents: Loop
Set A = .Document.getElementsByTagName("table")
Application.Wait Time + #12:00:02 AM#
.ExecWB 17, 2 ' Select All
.ExecWB 12, 1 ' Copy selection
With ActiveSheet
.UsedRange.Delete
.Range("A1").Select
.Paste
.Range("A1").Select
End With
.Quit '關閉網頁
End With
End Sub