Bonjour,
Je pense que la macro ci-dessous doit pouvoir se simplifier mais je ne sais pas comment ?
Merci d'avance,
Sub MACRO()
For x = 2 To 11
Cells(5, x) = Cells(3, x).Value
Next
For x = 14 To 20
Cells(5, x) = Cells(3, x).Value
Next
For x = 2 To 11
Cells(10, x) = Cells(8, x).Value
Next
For x = 14 To 20
Cells(10, x) = Cells(8, x).Value
Next
For x = 2 To 11
Cells(15, x) = Cells(13, x).Value
Next
For x = 14 To 20
Cells(15, x) = Cells(13, x).Value
Next
For x = 2 To 11
Cells(20, x) = Cells(18, x).Value
Next
For x = 14 To 20
Cells(20, x) = Cells(18, x).Value
Next
For x = 2 To 9
Cells(27, x) = Cells(25, x).Value
Next
For x = 14 To 20
Cells(27, x) = Cells(25, x).Value
Next
For x = 2 To 9
Cells(32, x) = Cells(30, x).Value
Next
For x = 14 To 20
Cells(32, x) = Cells(30, x).Value
Next
For x = 2 To 9
Cells(37, x) = Cells(35, x).Value
Next
For x = 14 To 20
Cells(37, x) = Cells(35, x).Value
Next
For x = 2 To 9
Cells(42, x) = Cells(40, x).Value
Next
For x = 14 To 20
Cells(42, x) = Cells(40, x).Value
Next
For x = 2 To 11
Cells(49, x) = Cells(47, x).Value
Next
For x = 2 To 11
Cells(54, x) = Cells(52, x).Value
Next
For x = 2 To 11
Cells(59, x) = Cells(57, x).Value
Next
For x = 2 To 11
Cells(64, x) = Cells(62, x).Value
Next
For x = 2 To 11
Cells(71, x) = Cells(69, x).Value
Next
For x = 2 To 11
Cells(76, x) = Cells(74, x).Value
Next
For x = 2 To 11
Cells(81, x) = Cells(79, x).Value
Next
For x = 2 To 11
Cells(86, x) = Cells(84, x).Value
Next
For x = 2 To 7
Cells(93, x) = Cells(91, x).Value
Next
For x = 2 To 7
Cells(98, x) = Cells(96, x).Value
Next
For x = 2 To 7
Cells(103, x) = Cells(101, x).Value
Next
For x = 2 To 7
Cells(108, x) = Cells(106, x).Value
Next
End Sub
Je pense que la macro ci-dessous doit pouvoir se simplifier mais je ne sais pas comment ?
Merci d'avance,
Sub MACRO()
For x = 2 To 11
Cells(5, x) = Cells(3, x).Value
Next
For x = 14 To 20
Cells(5, x) = Cells(3, x).Value
Next
For x = 2 To 11
Cells(10, x) = Cells(8, x).Value
Next
For x = 14 To 20
Cells(10, x) = Cells(8, x).Value
Next
For x = 2 To 11
Cells(15, x) = Cells(13, x).Value
Next
For x = 14 To 20
Cells(15, x) = Cells(13, x).Value
Next
For x = 2 To 11
Cells(20, x) = Cells(18, x).Value
Next
For x = 14 To 20
Cells(20, x) = Cells(18, x).Value
Next
For x = 2 To 9
Cells(27, x) = Cells(25, x).Value
Next
For x = 14 To 20
Cells(27, x) = Cells(25, x).Value
Next
For x = 2 To 9
Cells(32, x) = Cells(30, x).Value
Next
For x = 14 To 20
Cells(32, x) = Cells(30, x).Value
Next
For x = 2 To 9
Cells(37, x) = Cells(35, x).Value
Next
For x = 14 To 20
Cells(37, x) = Cells(35, x).Value
Next
For x = 2 To 9
Cells(42, x) = Cells(40, x).Value
Next
For x = 14 To 20
Cells(42, x) = Cells(40, x).Value
Next
For x = 2 To 11
Cells(49, x) = Cells(47, x).Value
Next
For x = 2 To 11
Cells(54, x) = Cells(52, x).Value
Next
For x = 2 To 11
Cells(59, x) = Cells(57, x).Value
Next
For x = 2 To 11
Cells(64, x) = Cells(62, x).Value
Next
For x = 2 To 11
Cells(71, x) = Cells(69, x).Value
Next
For x = 2 To 11
Cells(76, x) = Cells(74, x).Value
Next
For x = 2 To 11
Cells(81, x) = Cells(79, x).Value
Next
For x = 2 To 11
Cells(86, x) = Cells(84, x).Value
Next
For x = 2 To 7
Cells(93, x) = Cells(91, x).Value
Next
For x = 2 To 7
Cells(98, x) = Cells(96, x).Value
Next
For x = 2 To 7
Cells(103, x) = Cells(101, x).Value
Next
For x = 2 To 7
Cells(108, x) = Cells(106, x).Value
Next
End Sub