Using VBA 7.1 on a MS Access for Office 365 MSO version 16.0.x 64 bit I have a reference to Microsoft HTML Object Library (mshtml.dll) 11.0.x set
I have the following code
Dim myHTMLDoc As New HTMLDocument
Dim myEnvironTag As HTMLUnknownElement
myHTMLDoc.body.innerHTML = "some text <environ>EnvironmentURL</environ> some other text"
For Each myEnvironTag In myHTMLDoc.getElementsByTagName("environ")
MsgBox myEnvironTag.innerHTML
MsgBox myEnvironTag.innerText
Next myEnvironTag
From the string <environ>EnvironmentURL</environ>
I am trying to return the string EnvironmentURL
In the code sample above both MessageBoxes are returning zero length strings.
Any idea how to return the string inside custom tags like this?
Thanks in advance