Sub Mise_en_forme()
For x = 2 To Sheets.Count 'boucle sur tous les onglets du classeur en partant du second
With Sheets(x) 'prend en compte l'onglet de la boucle
.Select 'sélectionne l'onglet
.Columns("A:A").Insert Shift:=xlToRight 'insère une colonne
.Range("A1").Select 'sélectionne la cellule A1
Range("A4").Select
ActiveCell.FormulaR1C1 = "=LEFT(R[-2]C[4],6)"
Range("A4").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Columns("G:H").Select
Selection.Replace What:=" ", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="*", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("A4").Select
Columns("I:J").Select
Selection.Delete Shift:=xlToLeft
Range("A4").Select
Selection.Copy
ActiveCell.Offset(0, 1).Range("A1").Select
Selection.End(xlDown).Select
ActiveCell.Offset(0, -1).Range("A1").Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste
Range("A4").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Rows("1:2").EntireRow.Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Range("A1").Select
End With
Next x
Sheets(1).Select
End Sub