Okay, je n'avais pas compris que tu voulais piloter ça depuis un fichier Excel !
Changement de programme : on va créer une macro sur PowerPoint qui va être exécuté depuis une macro Excel.
Avant tout : il te faut activer la bibliothèque PowerPoint sur Excel : Menu Outils -> Références -> Cochez la ligne "Microsoft Powerpoint x.x Object Library".
Macro dans ton fichier Excel, à adapter:
Sub t()
Dim oPPTApp As PowerPoint.Application
Dim oPPTPres As PowerPoint.Presentation
Dim sPresentationFile As String
sPresentationFile = "XX:\XX\XX\XX\Eddie.pptm"
Set oPPTApp = New PowerPoint.Application
oPPTApp.Visible = True
Set oPPTPres = oPPTApp.Presentations.Open(sPresentationFile)
oPPTApp.Run ("XX:\XX\XX\XX\Eddie.pptm!ModifPPT")
Set oPPTPres = Nothing
Set oPPTApp = Nothing
End Sub
Ensuite, macro que tu places dans ton fichier Powerpoint :
Sub ModifPPT()
Set myDocument = ActivePresentation.Slides(1)
myDocument.Shapes("Forme2").Rotation = 0
End Sub
Cette macro ouvre le PPT donc tu as avantages à le laisser fermé avant la manip.
Cela te convient ?
Baboutz