title: VBA Microsoft HTML Object Library HTML Document HTMLUnknownElement not displaying innerHTML or innerText
body: <p>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</p>
  <p>I have the following code</p>
  <pre><code>    Dim myHTMLDoc As New HTMLDocument
      Dim myEnvironTag As HTMLUnknownElement
      
      myHTMLDoc.body.innerHTML = &quot;some text &lt;environ&gt;EnvironmentURL&lt;/environ&gt; some other text&quot;
      
      For Each myEnvironTag In myHTMLDoc.getElementsByTagName(&quot;environ&quot;)
          MsgBox myEnvironTag.innerHTML
          MsgBox myEnvironTag.innerText
      Next myEnvironTag
  
  </code></pre>
  <p>From the string <code>&lt;environ&gt;EnvironmentURL&lt;/environ&gt;</code></p>
  <p>I am trying to return the string <code>EnvironmentURL</code></p>
  <p>In the code sample above both MessageBoxes are returning zero length strings.</p>
  <p>Any idea how to return the string inside custom tags like this?</p>
  <p>Thanks in advance</p>