Sub transfert()
dim derl as string
dim i as integer
dim rep as string
Application.ScreenUpdating = False
Sheets("saisie").Select
derl = Range("a65536").End(xlUp).Row
Feuil3.Select
Rows("2:2").Select
For i = 1 To derl - 5
Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Next
Sheets("saisie").Select
Range(Cells(6, 1), Cells(derl, 6)).Select
Selection.Copy
Feuil3.Select
Feuil3.Range("a2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range(Cells(2, 1), Cells(derl - 4, 2)).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent6
.TintAndShade = 0.399975585192419
.PatternTintAndShade = 0
End With
'vider les colonnes
Sheets("saisie").Select
Range("a6:a" & derl).ClearContents
Range("c6:c" & derl).ClearContents
Range("e6:f" & derl).ClearContents
rep = InputBox("Indiquez le Nom de la feuille")
If rep = "" Then
MsgBox "erreur la feuille n'est pas renommée"
Exit Sub
Else
Feuil3.Name = rep
End If
Application.ScreenUpdating = True
End Sub