Option Explicit
Sub planningPdfTest()
Application.ScreenUpdating = False
Dim Sh As Worksheet
Dim Sh1 As Worksheet
Dim Sh2 As Worksheet
Dim Sh3 As Worksheet
Dim Cptr As String
Cptr = 1
For Each Sh In ThisWorkbook.Worksheets
If Sh.Name <> "Notes" Then
Sh.Range("2:2,17:25,61:70,91:99,147:154,172:265").EntireRow.Hidden = True
If Cptr = 1 Then Set Sh1 = ThisWorkbook.Worksheets(Sh.Name)
If Cptr = 2 Then Set Sh2 = ThisWorkbook.Worksheets(Sh.Name)
If Cptr = 3 Then Set Sh3 = ThisWorkbook.Worksheets(Sh.Name)
Cptr = Cptr + 1
End If
Next
'Sheets(Array(Sh1.Name, Sh2.Name, Sh3.Name)).PrintPreview 'Selectionne les feuille à imprimer
With Sheets(Array(Sh1.Name, Sh2.Name, Sh3.Name)).Select
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:="C:\Users\xxxx\Documents\Planning test v1" & ".pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End With
For Each Sh In ThisWorkbook.Worksheets
Sh.Rows("1:280").Hidden = False
Next
Set Sh1 = Nothing
Set Sh2 = Nothing
Set Sh3 = Nothing
Set Sh = Nothing
Application.ScreenUpdating = True
End Sub