Sub Test_EXPORT_PDF()
Dim objSFolders As Object, Dossier_Export$, Fichier_PDF$
Set objSFolders = CreateObject("WScript.Shell").SpecialFolders
Dossier_Export = objSFolders("mydocuments") & "\"
Fichier_PDF = Dossier_Export & "totest.pdf"
'ici export de la feuille Feuil2 NB: j'utilise le codename
Export_PDF Feuil2, Fichier_PDF
End Sub
Private Sub Export_PDF(F As Worksheet, Nom_PDF As String)
Dim rng As Range
Set rng = F.Range("A1:G51") ' à adapter
'NB: Sur mon PC, A1:G51 correspond à une page A4
rng.ExportAsFixedFormat Type:=xlTypePDF, Filename:=Nom_PDF, Quality:=xlQualityStandard, From:=1, To:=1
End Sub