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
| Sub Macrodonnéesbrutes()
'
' Macrodonnéesbrutes Macro
'
' Touche de raccourci du clavier: Ctrl+Shift+P
'
ActiveWorkbook.Worksheets("FT542PN").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("FT542PN").Sort.SortFields.Add Key:=Range( _
"A1:A879238"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("FT542PN").Sort
.SetRange Range("A1:E879238")
.Header = xlGuess
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Range("D10991").Select
Range(Selection, Selection.End(xlUp)).Select
Selection.Replace What:=".", Replacement:=",", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Range("F10991").Select
Range(Selection, Selection.End(xlUp)).Select
Selection.Copy
End Sub |
Partager