Sub Imprimeavecfiligrammeoriginal()
' fait pour imprimer des factures sans filigrane original et avec filigrane orignial
c = InputBox("Combien de copie sans filigrane voulez-vous?", "Question")
o = InputBox("Combien de copie avec filigrane ''ORIGINAL'' voulez-vous?", "Question")
Dim i As Byte, x As Byte
x = Sheets.Count
For i = 1 To x
Sheets(i).Select
Application.DisplayAlerts = False
ActiveWindow.SelectedSheets.PrintOut Copies:=c
ActiveSheet.Shapes.AddTextEffect(msoTextEffect1, "ORIGINAL", "ARIAL", _
72#, msoFalse, msoFalse, 200, 100#).Select
With Selection
.ShapeRange.Fill.Visible = msoTrue
.ShapeRange.Fill.Solid
.ShapeRange.Fill.ForeColor.SchemeColor = 22
.ShapeRange.Fill.Transparency = 0.5
.ShapeRange.Line.Visible = msoFalse
.ShapeRange.IncrementRotation -0
.ShapeRange.IncrementLeft -30
.ShapeRange.IncrementTop 350
ActiveWindow.SelectedSheets.PrintOut Copies:=o, Collate:=True
End With
Next
ThisWorkbook.Saved = False
ActiveWorkbook.Close
Application.DisplayAlerts = True
End Sub