Bonjour à tous,
j'ai essayé une macro, ci-dessous, mais je bloque sur la sélection!
Option Explicit
Sub imprim()
Dim nom$
With Feuil10
nom = .Cells(1, 2) & "\" & .Cells(3, 2) & " " & Format(.Cells(2, 2), "dd-mm-yyyy") & ".pdf"
.ExportAsFixedFormat Type:=xlTypePDF, Filename:=nom, _
Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=False
End With
MsgBox "Factura a fost salvata sub " & nom, , "PRINT TERMINAT"
End Sub
Edit modo : code entre balises SVP
Merci pour votre aide,