title: CreateObject("VBScript.RegExp") Run-time error '429'
body: <p>I've just started studying <strong>Excel VBA with Mac</strong>. When I executed the following macro, run-time error occurred. Could anyone help me out?</p>
  <p><strong>Here is my code:</strong></p>
  <pre><code>Sub macro()
    Dim regex As Object, matchList As Object
    Dim str As String, patternStr As String
    str = &quot;0123-4567&quot;
    patternStr = &quot;\d+&quot;
    'patternStr = &quot;¥d+&quot;
    
    Set regex = CreateObject(&quot;VBScript.RegExp&quot;)
    With regex
        .Global = True
        .Pattern = patternStr
        Set matchList = .Execute(str)
    End With
  End Sub
  </code></pre>
  <p><strong>Here is the error message:</strong></p>
  <pre><code>Run-time error '429':
  ActiveX component can't create object
  </code></pre>