Dim fso As Object
Dim folder As Object
Dim fo As String
Dim SubFolders As Object
Dim CurrFile As Object
Dim foldest As String
Set fso = CreateObject("Scripting.FileSystemObject")
fo = "C:\Users\samiess\Desktop\resu\"
Set folder = fso.GetFolder(fo)
Set SubFolders = folder.SubFolders
Dim ppAPP As PowerPoint.Application, ppPres As PowerPoint.Presentation
Set ppAPP = CreateObject("Powerpoint.Application")
foldest = "C:\Users\samiess\Desktop\resu\EN\"
For Each SubFolders In SubFolders
Set CurrFile = SubFolders.Files
For Each CurrFile In CurrFile
If CurrFile.Name Like "*EN*" Then
Chemin = CurrFile
Debug.Print Chemin
'MsgBox x
Fichier = Dir(Chemin)
Debug.Print Fichier
Do While Len(Fichier) > 0
'
Set ppPres = ppAPP.Presentations.Open(Chemin)
'
' ppPres.ExportAsFixedFormat foldest & Fichier & ".pdf", ppFixedFormatTypePDF, ppFixedFormatIntentPrint
'
' ppPres.Close
'Fichier = Dir()
Loop
End If
Next
Next
ErrHandler:
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub