title: unprotect excel workbook #2
body: <p>I have one excel which is password protected. i am trying to add one macro to this excel..
  My code is </p>
  
  <pre><code>   oBook = oExcel.Workbooks.Open(FileName, 0, false, 5, "xyz", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, true);
  
      //oModule = oMOD.VBComponents("ThisWorkbook");
  
      oBook.Unprotect("xyz");
  
      // Create a new VBA code module.
      oModule =
      oBook.VBProject.VBComponents.Add(VBIDE.vbext_ComponentType.vbext_ct_StdModule);
      oModule.CodeModule.AddFromString(sCode);
  </code></pre>
  
  <p>When i run this i am getting this error "Can't perform operation since the project is protected." </p>
  
  <p>Any help how to get rid of this error</p>