Bonjour à tous,
J’ai besoin de votre aide ;
Y aurait-il une solution pour simplifier ce code :
For s = 4 To 45 Step 3
If Cells(4, s) <> "" Then
Cells(4, 71).FormulaR1C1 = "=RC[-66]/RC[1]"
Cells(4, 74).FormulaR1C1 = "=RC[-67]/RC[1]"
Cells(4, 77).FormulaR1C1 = "=RC[-68]/RC[1]"
Cells(4, 80).FormulaR1C1 = "=RC[-69]/RC[1]"
Cells(4, 83).FormulaR1C1 = "=RC[-70]/RC[1]"
Cells(4, 86).FormulaR1C1 = "=RC[-71]/RC[1]"
Cells(4, 89).FormulaR1C1 = "=RC[-72]/RC[1]"
Cells(4, 92).FormulaR1C1 = "=RC[-73]/RC[1]"
Cells(4, 95).FormulaR1C1 = "=RC[-74]/RC[1]"
Cells(4, 98).FormulaR1C1 = "=RC[-75]/RC[1]"
Cells(4, 101).FormulaR1C1 = "=RC[-76]/RC[1]"
Cells(4, 104).FormulaR1C1 = "=RC[-77]/RC[1]"
Cells(4, 107).FormulaR1C1 = "=RC[-78]/RC[1]"
Cells(4, 110).FormulaR1C1 = "=RC[-79]/RC[1]"
Cells(4, 113).FormulaR1C1 = "=RC[-80]/RC[1]"
Cells(4, 116).FormulaR1C1 = "=RC[-81]/RC[1]"
Cells(4, 119).FormulaR1C1 = "=RC[-82]/RC[1]"
Cells(4, 122).FormulaR1C1 = "=RC[-83]/RC[1]"
Cells(4, 125).FormulaR1C1 = "=RC[-84]/RC[1]"
Cells(4, 128).FormulaR1C1 = "=RC[-85]/RC[1]"
Cells(4, 131).FormulaR1C1 = "=RC[-86]/RC[1]"
End If
Next s
Par avance je vous remercie pour votre implication.
FG