1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Sub Copie()
Dim PPT As PowerPoint.Application, PptDoc As PowerPoint.Presentation
Dim PptSlide As PowerPoint.Slide, PptShape As PowerPoint.Shape
Dim Tdb As Worksheet
Set Tdb = Sheets("POC")
Set PPT = CreateObject("Powerpoint.Application")
PPT.Visible = True
Set PptDoc = PPT.Presentations.Open("M:\Projet_Données_internationales\POC\POC.pptx")
Set PptSlide = PptDoc.Slides(2)
Tdb.Shapes.SelectAll
Selection.Copy
With PptSlide
.Select
.Shapes.Paste
.Shapes.SelectAll
Set PptShape = .Shapes.Range.Group
With PptShape
.Name = "POC"
.Left = 38
.Top = 120
End With
End With
Set PptSlide = Nothing: Set PptDoc = Nothing: Set PPT = Nothing: Set Tdb = Nothing
End Sub |
Partager