1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| Sub rearangementcolonne()
Dim i, j As Integer
j = 6
For i = 4 To 8
Cells(i, 3).Value = Cells(3, j).Value
Cells(i, 4).Value = Cells(3, j + 1).Value
Cells(i, 5).Value = Cells(3, j + 2).Value
j = j + 3
Next i
i = i + 2
j = 6
For i = 10 To 14
Cells(i, 3).Value = Cells(9, j).Value
Cells(i, 4).Value = Cells(9, j + 1).Value
Cells(i, 5).Value = Cells(9, j + 2).Value
j = j + 3
Next i
i = i + 2
j = 6
For i = 16 To 20
Cells(i, 3).Value = Cells(15, j).Value
Cells(i, 4).Value = Cells(15, j + 1).Value
Cells(i, 5).Value = Cells(15, j + 2).Value
j = j + 3
Next i
End Sub |
Partager