1 2 3 4 5 6 7 8 9 10 11 12 13 14
| Sub essais()
Dim a As Integer
For a = 1 To 20
ActiveWorkbook.Sheets("Cas1").Copy after:=Worksheets(Worksheets.Count)
ActiveSheet.Name = a
Cells(2, 3) = Worksheets("Puissance sdv").Cells(a + 3, 5)
Cells(3, 3) = Worksheets("Puissance sdv").Cells(a + 6, 2)
Cells(3, 4) = Worksheets("Puissance sdv").Cells(a + 6, 5)
Cells(4, 3) = Worksheets("Puissance sdv").Cells(a + 5, 2)
Cells(4, 4) = Worksheets("Puissance sdv").Cells(a + 5, 5)
Cells(7, 3) = Worksheets("Puissance sdv").Cells(a + 15, 5)
Cells(7, 9) = Worksheets("Puissance sdv").Cells(a + 17, 5)
Next a
End Sub |
Partager