..Document.Body.outerHTML
Tim
"got mike?" wrote in message
...
okay, that works for the title, but i'm trying to parse the actual html to
pick out data in the middle of the page. how would you alter this to
search
to just get the raw html code on the page?
"Jake Marx" wrote:
Hi Jon,
Here's a function that should return the page title of an HTML document
(or
an empty string if URL is invalid or can't be found):
Public Function gsGetURLTitle(rsURL As String) As String
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
With ie
.Navigate rsURL
Do While .Busy And Not .ReadyState = 4
DoEvents
Loop
gsGetURLTitle = IIf(StrComp(.Document.Title, _
"Cannot find server", vbTextCompare) = 0, _
vbNullString, .Document.Title)
.Quit
End With
Set ie = Nothing
End Function
--
Regards,
Jake Marx
MS MVP - Excel
www.longhead.com