Sub PDF()
Dim LeNom As String, LaDate As String, LeRep
With ActiveSheet
.Range("A:B,H:H,J:K,M:M,G:G").EntireColumn.Hidden = True
LeNom = .Range("D2").Value & " - " & .Range("G2")
LaDate = Format(Date, "dd.mm.yyyy")
LeNom = LeNom & " - " & LaDate & ".pdf"
LeRep = Application.GetSaveAsFilename(LeNom, "PDF Files (*.pdf), *.pdf")
If VarType(LeRep) = vbString Then
.ExportAsFixedFormat xlTypePDF, LeRep
MsgBox "Le fichier a bien été créé"
End If
.Range("A:B,H:H,J:K,M:M,G:G").EntireColumn.Hidden = False
End With
End Sub