A voir également:
- Sauvegarder au format PDF
- Lire le coran en français pdf - Télécharger - Histoire & Religion
- Format epub - Guide
- Telecharger format factory - Télécharger - Conversion & Codecs
- Format apfs - Guide
- Comment faire un pdf - Guide
1 réponse
Oh oh j'ai parler un peu vite je vien de réussir a le faire... je le poste pour ceux a qui ca pourrait servir
WS_Count = ActiveWorkbook.Worksheets.Count
For I = 1 To WS_Count
ActiveWorkbook.Worksheets(I).PageSetup.PrintArea = "$B$1:$AM$50"
Next
Dim mydate As Date
myname = Worksheets("plan formation").Range("D4")
mydate = Worksheets("plan formation").Range("D3")
mymonth = Format(mydate, "mm")
myfile = Year(mydate) & " " & mymonth & " plan formation" & " " & myname
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
ThisWorkbook.Path & "\" & myfile _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
WS_Count = ActiveWorkbook.Worksheets.Count
For I = 1 To WS_Count
ActiveWorkbook.Worksheets(I).PageSetup.PrintArea = "$B$1:$AM$50"
Next
Dim mydate As Date
myname = Worksheets("plan formation").Range("D4")
mydate = Worksheets("plan formation").Range("D3")
mymonth = Format(mydate, "mm")
myfile = Year(mydate) & " " & mymonth & " plan formation" & " " & myname
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
ThisWorkbook.Path & "\" & myfile _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True