title: VBA RegExp causes Compile error while vbscript.regexp works
body: <p>I was writing a script for VBA, for Outlook 2013, that uses regular expressions and every example I find seems to use <code>Set regex = New RegExp</code> to create a <em>RegExp object</em>. When I tried this I got <strong>Compile error: User-defined type not defined</strong>.</p>
  
  <p>I managed to get regular expressions to work using <code>Set regex = CreateObject("vbscript.regexp")</code>.</p>
  
  <p>Any reason why the first options is not working?</p>