Sub ExportPDF()
Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
Application.ScreenUpdating = False
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:="c:\temp\test.pdf", _
OpenAfterPublish:=False
If Dir("c:\temp\test.pdf") <> "" Then
Rep = MsgBox("PDF Sauvegardé avec succés", vbYesonly, "Enregistrement")
Else
End If
Application.ScreenUpdating = True
End Sub