Bonjour a tous !!
je cherche a convertir une partie de ma feuille1 range(A1:G20) en PDF quand je clic sur un bouton...
J'ai commence ca comme code, mais ca bloque!! arghhh...
MErci a vous bon weekend!!
je cherche a convertir une partie de ma feuille1 range(A1:G20) en PDF quand je clic sur un bouton...
J'ai commence ca comme code, mais ca bloque!! arghhh...
Code:
Const ThePath As String = "C:\XLD-PDF\"
Const TheFile As String = "TheTestingFile.PDF"
Sub SaveAsPDF()
CreePDFOnly True
End Sub
Sub CreePDFOnly(Optional PromptForPDFName As Boolean)
If SaveAsPDF_Clic() And Not PromptForPDFName Then
SendKeys "~"
ConvertToPDFA
ElseIf SaveAsPDF_Clic() And PromptForPDFName Then
SendKeys ThePath & TheFile + "~"
ConvertToPDFA
End If
End Sub
MErci a vous bon weekend!!