Sub UnprotectVBProject(WB As Workbook, ByVal Password As String)
'unprotect the macro
Dim vbProj As Object
Set vbProj = WB.VBProject
If vbProj.Protection <> 1 Then Exit Sub
Set Application.VBE.ActiveVBProject = vbProj
SendKeys Password & "{_}" & "{$}" & "~~"
'Application.VBE.CommandBars(1).FindControl(ID:=2578, recursive:=True).Execute '*** ICI
End Sub