Bonjour
Je veux créer un fichier Powerpoint depis Excel, et créer des slides à partir des cellules ..
Or, 'instruction "Set pptApp" bugge !
Le fichier est joint.
Note : J'ai bien référencé l'object library Powerpoint x.x depuis VBA/ Outils/ Reference
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 Sub CommandButton1_Clic() Dim pptApp As PowerPoint.Application Dim PptDoc As PowerPoint.Presentation Dim Diapo As PowerPoint.Slide Dim Sh As PowerPoint.Shape Dim Cs1 As ColorScheme Dim NbShpe As Integer Dim PtpApp As Object Dim file As String file = "C:\Weekly Template.ppt" Set pptApp = CreateObject("PowerPoint.Application")
Partager