ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Document.Body.InnerText is empty in Excel 2003 (https://www.excelbanter.com/excel-programming/409554-document-body-innertext-empty-excel-2003-a.html)

grove

Document.Body.InnerText is empty in Excel 2003
 
This code works fine in Excel 2002


Private Sub WB_DocumentComplete(ByVal pDisp As Object, URL As
Variant)

Dim sGetText As String

If (pDisp Is WB) Then
sGetText = WB.Document.Body.InnerText

....do something with sGetText ...

End Sub


But in Excel 2003 "sGetText" is empty for the same web page.

Have I missed something here or is a change required for 2003?


Thanks

grove




All times are GMT +1. The time now is 04:34 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com