A
Alan
I am trying to completely retrieve a web page and search it using
VBScript regular expressions. However, I do not get the complete web
page.
Am I running into some VBA string length limit or what? Is there some
way around it?
My Sub may be found below.
Alan
Sub GetGoogleHomePage()
Dim oIE As SHDocVw.InternetExplorer
Dim sPage As String
' Create a new (hidden) instance of IE
Set oIE = New SHDocVw.InternetExplorer
' Open the web page
oIE.Navigate "http://www.google.com"
' Wait for the page to complete loading
Do Until oIE.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
' Retrieve the text of the web page
sPage = oIE.Document.body.InnerHTML
' Display the HTML
Debug.Print sPage
End Sub
VBScript regular expressions. However, I do not get the complete web
page.
Am I running into some VBA string length limit or what? Is there some
way around it?
My Sub may be found below.
Alan
Sub GetGoogleHomePage()
Dim oIE As SHDocVw.InternetExplorer
Dim sPage As String
' Create a new (hidden) instance of IE
Set oIE = New SHDocVw.InternetExplorer
' Open the web page
oIE.Navigate "http://www.google.com"
' Wait for the page to complete loading
Do Until oIE.ReadyState = READYSTATE_COMPLETE
DoEvents
Loop
' Retrieve the text of the web page
sPage = oIE.Document.body.InnerHTML
' Display the HTML
Debug.Print sPage
End Sub