Sub Enregistrer_TVA_EnPDF()
With USF_Menu
S_Credit_TVA = .Txt_Credit_TVA
S_TVA_Deductible_1 = .Txt_TVA_Deductible
End With
Dim chemin$
chemin = ThisWorkbook.Path
Set Ws_Source = Worksheets("AUTORISATIONS")
With Sheets("TVA")
.Lbl_Montant_Total_HT = "Montant Total HT = " & Format(CCur(S_Totale_Declaree), "### ### ##0.00") & " €"
.Lbl_Montant_Total_TTC = "Montant Total TTC = " & Format(CCur(S_Totale_Declaree) + CCur(S_Totale_TVA), "### ### ##0.00") & " €"
.Lbl_MoisEnCours.Caption = Application.Proper(Format(DateSerial(Year_Select, Month_Select, 1), "mmmm")) 'Month_Actuel
.Lbl_TVA_Collectee1.Caption = "TVA Collectée = " & Format(CCur(S_Totale_TVA), "### ### ###0.00") & " €" 'on colle la somme des TVA
.Lbl_TVA_Collectee2.Caption = "TVA Collectée = " & Format(CCur(S_Totale_TVA), "### ### ###0.00") & " €" 'on colle la somme des TVA
.Lbl_TVA_Totale_Deductible.Caption = "TVA déductible = " & Format(CCur(S_TVA_Deductible_1), "### ### ###0.00") & " €"
.Lbl_Credit_TVA.Caption = "Crédit de TVA anterieur = " & Format(S_Credit_TVA, "### ### ###0.00") & " €"
.Lbl_TVA_Payer.Caption = "TVA a payer = " & Format(CCur(S_Totale_TVA) - CCur(S_TVA_Deductible_1) - CCur(S_Credit_TVA), "### ### ###0.00") & " €"
.Lbl_Credit_TVA_Periode = "Crédit TVA période = " & " €"
End With
ThisWorkbook.Sheets("TVA").ExportAsFixedFormat Type:=xlTypePDF, _
Filename:=chemin & "\" & "TVA-" & Year_Select & "-" & Application.Proper(Format(DateSerial(Year_Select, Month_Select, 1), "mm")) & ".pdf" '" " & Month_Select & ".pdf"
S_Totale_Declaree = 0: S_Totale_TVA = 0: S_TVA_Deductible_1 = 0
Set Ws_Source = Nothing
End Sub