Sub traitementdonnée()
Dim i As Integer
Worksheets("PLAN donnée").Range("A3:J1000").ClearContents
For i = 1 To 120
If UCase(Left(Cells(i, 4), 1)) = H Then ' Si la 1ère lettre de la case Di = H
Sheets("PLAN").Select ' Selection de l'onglet "PLAN"
Range(Cells(i, 5), Cells(i, 6)).Select ' Selectionne les cellulles Ei:Fi
Selection.Copy ' Copie la selection
Sheets("PLAN donnée").Select ' Selection de l'onglet "PLAN donnée"
Range(Cells(i, 5), Cells(i, 6)).Select ' Selectionne les cellulles Ei:Fi
ActiveSheet.Paste ' Colle dans la selection
ElseIf UCase(Left(Cells(i, 4), 1)) = b Then 'Si la 1ère lettre de la case Di = B
Sheets("PLAN").Select
Range(Cells(i, 5), Cells(i, 6)).Select
Selection.Copy
Sheets("PLAN donnée").Select
Range(Cells(i, 3), Cells(i, 4)).Select
ActiveSheet.Paste
ElseIf UCase(Left(Cells(i, 4), 1)) = c Then 'Si la 1ère lettre de la case Di = C
Sheets("PLAN").Select
Range(Cells(i, 5), Cells(i, 6)).Select
Selection.Copy
Sheets("PLAN donnée").Select
Range(Cells(i, 1), Cells(i, 2)).Select
ActiveSheet.Paste
ElseIf UCase(Left(Cells(i, 4), 1)) = D Then 'Si la 1ère lettre de la case Di = D
Sheets("PLAN").Select
Range(Cells(i, 5), Cells(i, 6)).Select
Selection.Copy
Sheets("PLAN donnée").Select
Range(Cells(i, 7), Cells(i, 8)).Select
ActiveSheet.Paste
ElseIf UCase(Left(Cells(i, 4), 1)) = F Then 'Si la 1ère lettre de la case Di = F
Sheets("PLAN").Select
Range(Cells(i, 5), Cells(i, 6)).Select
Selection.Copy
Sheets("PLAN donnée").Select
Range(Cells(i, 7), Cells(i, 8)).Select
ActiveSheet.Paste
ElseIf UCase(Left(Cells(i, 4), 1)) = a Then 'Si la 1ère lettre de la case Di = A
Sheets("PLAN").Select
Range(Cells(i, 5), Cells(i, 6)).Select
Selection.Copy
Sheets("PLAN donnée").Select
Range(Cells(i, 9), Cells(i, 10)).Select
ActiveSheet.Paste
End If
Next
End Sub