Hello tazrockon,
The API call will return the source page text. You will have to write the code to parse and load the worksheet. Here is the macro. Copy and paste this code into a VBA module in your workbook's VBA project.
Function GetSourceText(URL As String) As String
Dim Request As Object
On Error Resume Next
Set Request = CreateObject("WinHttp.WinHttpRequest.5.1")
If Request Is Nothing Then
Set Request = CreateObject("WinHttp.WinHttpRequest.5")
End If
Err.Clear
On Error GoTo 0
Request.Open "GET", URL, False
Request.Send
'When using this property in synchronous mode, the limit to the number of
'characters it returns is approximately 2,169,895.
GetSourceText = Request.responsetext
End Function
Example of Using the Function
Dim PageSource As String
PageSource = GetSourceText("www.google.com")
Bookmarks