title: Unprotect VBProject from VB code
body: <p>How can i unprotect my  VB project from a vb macro ?
  i have found this code:</p>
  
  <pre><code>    Sub UnprotectVBProject(ByRef WB As Workbook, ByVal Password As String)
    Dim VBProj As Object
    Set VBProj = WB.VBProject
    Application.ScreenUpdating = False
    'Ne peut procéder si le projet est non-protégé.
    If VBProj.Protection &lt;&gt; 1 Then Exit Sub
    Set Application.VBE.ActiveVBProject = VBProj
    'Utilisation de "SendKeys" Pour envoyer le mot de passe.
  
    SendKeys Password &amp; "~"
    SendKeys "~"
    'MsgBox "Après Mot de passe"
    Application.VBE.CommandBars(1).FindControl(ID:=2578, recursive:=True).Execute
    Application.Wait (Now + TimeValue("0:00:1"))
  
  End Sub
  </code></pre>
  
  <p>But this solution doesn't work for Excel 2007. It display the authentification's window and print password in my IDE.</p>
  
  <p>Then, my goal is to unprotect my VBproject without displaying this window.</p>
  
  <p>Thanks for any help.  </p>