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
| Sub Converter()
'
' Converter Macro
'
' Touche de raccourci du clavier: Ctrl+k
'
Columns("A:A").Select
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=True, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), _
Array(7, 1), Array(8, 1), Array(9, 1), Array(10, 1)), TrailingMinusNumbers:=True
Range("K1").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],converter,2,FALSE)"
Columns("F:G").Select
Selection.Replace What:=".", Replacement:=",", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Nb_Lignes = Range("J65636").End(xlUp).Row
Selection.AutoFill Destination:=Range("K1:K" & Nb_Lignes).FillDown, Type:=xlFillDefault
End Sub |
Partager