Sub XXL()
Dim ppt As Object
Dim pres As PowerPoint.Presentation
Dim sld As PowerPoint.Slide
Dim ppE As PowerPoint.Effect
Dim shp As PowerPoint.Shape
Dim arr() As Variant, vrtItem As Variant
Dim dlg As FileDialog
Dim pad As String, tmp As String, i As Integer
Set dlg = Application.FileDialog(msoFileDialogFolderPicker)
With dlg
.AllowMultiSelect = False
If .Show = True Then pad = .SelectedItems(1)
End With
tmp = Dir(pad & "\*.ppt", vbNormal)
Do While Not tmp = ""
ReDim Preserve arr(i)
arr(i) = pad & "\" & tmp
i = i + 1
tmp = Dir
Loop
Set ppt = New PowerPoint.Application
For i = LBound(arr) To UBound(arr)
Set pres = ppt.Presentations.Open(arr(i), msoFalse)
For Each sld In pres.Slides.Range
For Each shp In sld.Shapes
With shp
If (.Type = msoPicture) Or (.Type = msoAutoShape And Not .HasTextFrame) Then
.LockAspectRatio = msoTrue
.Top = 50
.Width = 710
.Left = 5
.Fill.Solid
.Fill.Visible = msoFalse
End If
End With
Next
Next
pres.Saved = msoTrue
pres.Close
Next i
End Sub