AndrewKent
Well-known Member
- Joined
- Jul 26, 2006
- Messages
- 889
Hi there,
I am trying to import data into Excel from the "Statistics" tab on this link:
http://www.flashscores.co.uk/detail/soccer.php?match=588618&gmt_offset=-3600&tab=1
However I cannot seem to get it to work. All I can import is the data from the first tab. here is my code:
Can anyone help me please?
Kind regards,
Andy
I am trying to import data into Excel from the "Statistics" tab on this link:
http://www.flashscores.co.uk/detail/soccer.php?match=588618&gmt_offset=-3600&tab=1
However I cannot seem to get it to work. All I can import is the data from the first tab. here is my code:
Code:
Sub Macro1()
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://www.flashscores.co.uk/detail/soccer.php?match=588618&gmt_offset=-3600&tab=5" _
, Destination:=Range("$B$3"))
.Name = "soccer.php?match=588618&gmt_offset=-3600&tab=5"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = True
.RefreshPeriod = 0
.WebSelectionType = xlEntirePage
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = True
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
End Sub
Can anyone help me please?
Kind regards,
Andy