Sub pdf()
Dim chemin As String
Dim sNomFichierPDF As String
Dim nom As String
Dim Cpt As Integer
Dim Ws As Worksheet
Dim J As Long
Dim Ar() As String
nom = ActiveWorkbook.Name
sNomFichierPDF = ThisWorkbook.Path & "\" & nom
Cpt = 0
For J = 3 To Sheets("Paramétrage").Range("A" & Rows.Count).End(xlUp).Row
' Boucle sur les feuilles du classeur
For Each Ws In Worksheets
'Elimination de la feuille une considérée comme interface ici
If Ws.Name = Sheets("Paramétrage").Range("A" & J) Then
Ws.Select
If Ws.Cells(529, 12) <> 0 Then
ReDim Preserve Ar(Cpt)
Ar(Cpt) = Sheets("Paramétrage").Range("A" & J).Value
Cpt = Cpt + 1
End If
End If
Next Ws
Next J
Sheets(Array("conso cpte résultat", Ar)).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
sNomFichierPDF & ".pdf", Quality:= _
xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas:=False, _
OpenAfterPublish:=False
End Sub