1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| ' ####### Colonne K : Modifier le type (enlever ) et remplacer , par .
' Note : Ajouter une ' en début de cellule pour forcer le type à texte
Columns("K:K").Select
Application.CutCopyMode = False
Columns("L:L").Select
Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
Range("K1").Select
Selection.Copy
Range("L1").Select
ActiveSheet.Paste
Range("L2").Select
Selection.NumberFormat = "General"
ActiveCell.FormulaR1C1 = "=CONCATENATE(""'"",RC[-1])"
Selection.AutoFill Destination:=Range("L2:L" & Range("E2").End(xlDown).Row)
Columns("L:L").Select
Selection.NumberFormat = "@"
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Selection.Replace What:=",", Replacement:=".", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
Columns("K:K").Select
Selection.Delete Shift:=xlToLeft |
Partager