1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Sub Macro5()
'
' Macro5 Macro
' Macro enregistrée le 29/04/2011 par GHAMMYOUNE
'
'
Columns("AE:AE").Select
Range("A1:AG18663").Sort Key1:=Range("AE1"), Order1:=xlAscending, Header _
:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom _
, DataOption1:=xlSortNormal
Selection.ColumnWidth = 10.71
Range("AG2").Select
ActiveCell.FormulaR1C1 = "=IF(RC[-2]=R[1]C[-2],0,1)"
Range("AG2").Select
Selection.AutoFill Destination:=Range("AG2:AG14328")
Range("AG2:AG14328").Select
End Sub |