title: Excel VBA activeX component can't create object / entry-point DllRegisterServer was not found
body: <p>I have problem on running following code using Excel-VBA or cscript.exe on my PC.</p>
  
  <pre><code>Set IE = New SHDocVw.InternetExplorer
  </code></pre>
  
  <blockquote>
    <p>“Run-time error '429': ActiveX component can't create object”?</p>
  </blockquote>
  
  <p>The above error was shown after running the code.</p>
  
  <p>I have checked through Stackoverflow and found that it maybe caused by missing "shdocvw.dll" in registry.</p>
  
  <p>Then, another problem comes out when I run following codes in CMD with administrative right.</p>
  
  <pre><code>regsvr32 shdocvw.dll
  </code></pre>
  
  <p>or </p>
  
  <pre><code>regsvr32 /i shdocvw.dll
  </code></pre>
  
  <blockquote>
    <p>The module "shdocvw.dll" was loaded but the entry-point DllRegisterServer was not found.</p>
    
    <p>Make sure that "shdocvw.dll" is a valid DLL or OCX file and then try again.</p>
  </blockquote>
  
  <p>I have tried regsvr32 /i "c:\windows\system32\scrrun.dll" in CMD and it works well so I am pretty sure it is not the problem of scrrun.dll.</p>
  
  <p>At this point, I have no idea on this issue.</p>
  
  <p>Can anyone please help me out?</p>
  
  <p>Thanks in advance!</p>