title: "50289 Can't perform operation since the project is protected" but why?
body: <p>I am supplying the correct password</p>
  
  <pre><code>Set objExcel = CreateObject("Excel.Application")
  Set objWorkbook = objExcel.Workbooks.Open("H:\M\X\C.xls", 0, , , "password")
  </code></pre>
  
  <p>'any of these lines cause the error mentioned</p>
  
  <pre><code>Set vbcomp = objWorkbook.VBProject.VBComponents(modname)
  objWorkbook.VBProject.VBComponents.Remove vbcomp
  objWorkbook.VBProject.VBComponents.Import modpath &amp; modtest
  </code></pre>
  
  <p>Any ideas what the problem might be?
  Tools-Macro-Security is set to allow VB project access</p>