Bonjour Romain50,
un exemple à tester
Sub testRomain50()
Dim MyFolder As String, MySubFolder As String, MyFile As String
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> "INFO" Then
MyFolder = "U:\COMMUN\"
MySubFolder = Dir("U:\COMMUN\" & ws.Name & "*", vbDirectory) & "\"
MyFile = ws.Name & ".pdf"
MyFile = MyFolder & MySubFolder & MyFile
ws.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=MyFile, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End If
Next ws
Application.ScreenUpdating = True
End Sub
Si tu souhaite exclure d'autres feuilles de l'exportation, tu peux modifier cette ligne
If ws.Name <> "INFO" Or ws.Name <> "Feuil1" Then
Cordialement