A
Adam
Guest
Bonjour,pourquoi ma macro qui fonctionnait avant ne fonctionne plus?
Sub activité()
Sheets('azg').Select
Range('EW1').Select
ActiveCell.FormulaR1C1 = 'Activité'
Range('EW2').Select
ActiveCell.FormulaR1C1 = _
'=IF((ici une bonne formule)<3,''1'',''2'')'
Selection.AutoFill Destination:=Range('EW2:EW' & Range('EW65536').End(xlUp).Row), Type:=xlFillDefault
End Sub
Il me met en jaune 'Selection.AutoFill Destination:=Range('EW2:EW' & Range('EW65536').End(xlUp).Row), Type:=xlFillDefault'
Par contre quand je remplace xlup par xldown ca marche mais ca fait pas ce que je voudrais faire :woohoo:
Sub activité()
Sheets('azg').Select
Range('EW1').Select
ActiveCell.FormulaR1C1 = 'Activité'
Range('EW2').Select
ActiveCell.FormulaR1C1 = _
'=IF((ici une bonne formule)<3,''1'',''2'')'
Selection.AutoFill Destination:=Range('EW2:EW' & Range('EW65536').End(xlUp).Row), Type:=xlFillDefault
End Sub
Il me met en jaune 'Selection.AutoFill Destination:=Range('EW2:EW' & Range('EW65536').End(xlUp).Row), Type:=xlFillDefault'
Par contre quand je remplace xlup par xldown ca marche mais ca fait pas ce que je voudrais faire :woohoo: