Quicksland
XLDnaute Occasionnel
Bonjour a tous
Comment réduire la longueur de cette macro
Sub donnéés1()
'
' donnéés1 Macro
'
'
Range("I2:I4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R13C2"
Range("I5:I6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R14C5"
Range("F7:I8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("H9:I10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R15C5"
Range("H11:I12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R16C5"
Range("D5:E6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("D21:G21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("D22").Select
ActiveWindow.SmallScroll ToRight:=6
Range("Q2:Q4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R19C2"
Range("Q5:Q6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R20C5"
Range("N7:Q8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("P9:Q10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R21C5"
Range("P11:Q12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R22C5"
Range("L5:M6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("L21:O21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("L22").Select
ActiveWindow.SmallScroll ToRight:=7
Range("Y2:Y4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R25C2"
Range("Y5:Y6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R26C5"
Range("V7:Y8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("X9:Y10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R27C5"
Range("X11:Y12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R28C5"
Range("T5:U6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("T21:W21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("T22").Select
ActiveWindow.SmallScroll ToRight:=7
Range("AG2:AG4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R31C2"
Range("AG5:AG6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R32C5"
Range("AD7:AG8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("AF9:AG10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R33C5"
Range("AF11:AG12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R34C5"
Range("AB5:AC6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("AB21:AE21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("AB22").Select
End Sub
Merci d'avance pour l'aide
Comment réduire la longueur de cette macro
Sub donnéés1()
'
' donnéés1 Macro
'
'
Range("I2:I4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R13C2"
Range("I5:I6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R14C5"
Range("F7:I8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("H9:I10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R15C5"
Range("H11:I12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R16C5"
Range("D5:E6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("D21:G21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("D22").Select
ActiveWindow.SmallScroll ToRight:=6
Range("Q2:Q4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R19C2"
Range("Q5:Q6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R20C5"
Range("N7:Q8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("P9:Q10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R21C5"
Range("P11:Q12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R22C5"
Range("L5:M6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("L21:O21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("L22").Select
ActiveWindow.SmallScroll ToRight:=7
Range("Y2:Y4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R25C2"
Range("Y5:Y6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R26C5"
Range("V7:Y8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("X9:Y10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R27C5"
Range("X11:Y12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R28C5"
Range("T5:U6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("T21:W21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("T22").Select
ActiveWindow.SmallScroll ToRight:=7
Range("AG2:AG4").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R31C2"
Range("AG5:AG6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R32C5"
Range("AD7:AG8").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R6C13"
Range("AF9:AG10").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R33C5"
Range("AF11:AG12").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R34C5"
Range("AB5:AC6").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R10C5"
Range("AB21:AE21").Select
ActiveCell.FormulaR1C1 = "='[1 CAMUS LA RIBAMBELLE 1.xlsm]PRINTEMPS '!R3C9"
Range("AB22").Select
End Sub
Merci d'avance pour l'aide