Sub PDF()
Dim nf, s As Object, n
nf = Application.CountA(Sheets("Master").[A:A]) - 1
For Each s In Sheets
If IsNumeric(s.Name) Then
n = n + 1
If n > nf Then Exit For
s.Select n = 1 'sélection multiple
End If
Next
ActiveSheet.ExportAsFixedFormat xlTypePDF, ThisWorkbook.Path & "\Mon PDF.pdf", OpenAfterPublish:=True
Sheets(1).Select
End Sub