Professional Documents
Culture Documents
Sheets("Liste Factures").Range("E10").EntireRow.Insert
Sheets("Liste Factures").Range("E10").Value =
Sheets("Facture").Range("J12").Value
Sheets("Liste Factures").Range("F10").Value =
Sheets("Facture").Range("J11").Value
Sheets("Liste Factures").Range("G10").Value =
Sheets("Facture").Range("I16").Value
Sheets("Liste Factures").Range("H10").Value =
Sheets("Facture").Range("J38").Value
Sheets("Liste Factures").Range("I10").Value = "Impayée"
Set wb = ThisWorkbook
Set feuille = wb.Sheets("Facture")
Application.ScreenUpdating = False
With feuille.PageSetup
.PrintArea = plage
.FitToPagesTall = 1
.FitToPagesWide = 1
.LeftMargin = Application.InchesToPoints(0)
.RightMargin = Application.InchesToPoints(0)
.TopMargin = Application.InchesToPoints(0)
.BottomMargin = Application.InchesToPoints(0)
End With
With feuille
iVis = .Visible
.Visible = xlSheetVisible
.Activate
.ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=dossierAdresse & nomDocument & ".pdf", _
Quality:=xlQualityStandard, IncludeDocProperties:=True, _
IgnorePrintAreas:=False, OpenAfterPublish:=True
.Visible = iVis
End With
Application.ScreenUpdating = True
End Sub