Hello! Please help me with VBA code to copy the web page in Excel, using the source code. Thanks in advance!
Sub ExtractWeb()
'to refer to the running copy of Internet Explorer
Dim ie As InternetExplorer
'open Internet Explorer in memory, and go to website
Set ie = New InternetExplorer
ie.Visible = True
ie.Navigate "http://www.bet365.com/extra/ro/results-and-archive/results/?Fromdate=2%2f6%2f2015+12%3a38&SearchPath=fixture&FixtureId=0&Period=1&ChallengeId=0&Teamid=&CompetitionId=20120651&SportId=146&SportDesc=Fotbal%2bvirtual&Todate=3%2f6%2f2015+12%3a38&LanguageId=23&Zoneid=22"
'Wait until IE is done loading page
Do While ie.ReadyState <> READYSTATE_COMPLETE
DoEvents
Loop
'show text of HTML document returned
Set html = ie.Document
ie.Document.PutInClipboard
Worksheets("Sheet4").Range("A1").Select
'Range("A1").Value = html.DocumentElement.outerHTML
ActiveSheet.PasteSpecial Format:="Unicode Text", Link:=False, _
DisplayAsIcon:=False
End Sub
Sub ExtractWeb()
'to refer to the running copy of Internet Explorer
Dim ie As InternetExplorer
'open Internet Explorer in memory, and go to website
Set ie = New InternetExplorer
ie.Visible = True
ie.Navigate "http://www.bet365.com/extra/ro/results-and-archive/results/?Fromdate=2%2f6%2f2015+12%3a38&SearchPath=fixture&FixtureId=0&Period=1&ChallengeId=0&Teamid=&CompetitionId=20120651&SportId=146&SportDesc=Fotbal%2bvirtual&Todate=3%2f6%2f2015+12%3a38&LanguageId=23&Zoneid=22"
'Wait until IE is done loading page
Do While ie.ReadyState <> READYSTATE_COMPLETE
DoEvents
Loop
'show text of HTML document returned
Set html = ie.Document
ie.Document.PutInClipboard
Worksheets("Sheet4").Range("A1").Select
'Range("A1").Value = html.DocumentElement.outerHTML
ActiveSheet.PasteSpecial Format:="Unicode Text", Link:=False, _
DisplayAsIcon:=False
End Sub