title: "User-defined type not defined" error in Excel VBA after upgrade to Windows 10
body: <p>A co-worker developed a part of Excel VBA-code for me. This code I have integrated in my code. </p>
  
  <p>Both parts of code separate runs fine at Windows 7.
  Both parts of code separate runs fine at Windows 10.
  Both parts of code integrated runs fine at Windows 7.
  Although both parts of code integrated give an error at Windows 10.</p>
  
  <p>The error is a Compile error "User-defined type not defined" directly after opening the file. It is caused by the line "Public objhttp As New XMLHTTP".</p>
  
  <pre><code>Option Explicit
  
  Public objhttp As New XMLHTTP
  
  Public url1 As String
  
  Public src As String
  
  '*******regualr Expression Variables*******
  
  Public regx As New RegExp, matches As Object, match As Object
  </code></pre>
  
  <p>I have checked all the references under Tools in the Library from VBA.
  The installed references are the same in all 4 situations. In all situations I use Excel 2016.</p>
  
  <p>Do you know what can be the cause for this?</p>
  
  <p>Thank you!</p>