2017-07-24 4 views

Répondre

1

Vous pouvez cliquer sur les boutons comme décrit ici.

https://msdn.microsoft.com/VBA/Office-Shared-VBA/articles/commandbars-executemso-method-office

Private Sub SaveAllAttachments_ExecuteMso() 

Dim objItem As Object 
Dim objInsp As Inspector 

Set objItem = ActiveInspector.currentItem 

Set objInsp = objItem.GetInspector 
' Hover over the "SAveAllAttachments..." button in the dialog for adding buttons. 
' You will see SaveAttachments, in brackets, at the end of the text. 
objInsp.CommandBars.ExecuteMso ("SaveAttachments") 

ExitRoutine: 
    Set objItem = Nothing 
    Set objInsp = Nothing 

End Sub 
+0

Merci! Maintenant, j'ai juste besoin d'ajouter une commande pour ouvrir le message d'abord et je suis bon: D –