Bonjour,

Je ne suis pas très à l'aise avec les boucles mais j'ai adapté mon code avec les renseignements que j'ai pu trouver sur votre site. Maintenant, je rencontre un problème d'optimisation car la macro tourne environ 4 mn c'est beaucoup trop long. Avez-vous une solution?
Merci pour votre aide => une novice
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
27
28
29
30
31
32
33
34
35
Sub CopierFormules()
 
Dim L As Long
Sheets("Volumes").Select
  With ActiveSheet
    For L = 8 To 293 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
    For L = 314 To 316 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 344 To 449 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 463 To 465 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 491 To 594 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 608 To 610 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 852 To 955 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 969 To 971 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
     For L = 1159 To 1174 'Step 2
      Cells(L, "F").End(xlToRight).Offset(0, 1).Formula = Cells(L, "F").End(xlToRight).Formula
    Next L
 
  End With
End Sub