1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Dim Rng As Range
Application.ScreenUpdating = False
'on définit notre plage de données
With Worksheets("Feuil1")
Set Rng = .Range("B4:B" & .Cells(.Rows.Count, "B").End(xlUp).Row)
End With
'on désactive les alertes excel
Application.DisplayAlerts = False
'On convertit les données de la colonne B avec "(" comme séparateur, le résultat s'inscrira à partir de la colonne D
Rng.TextToColumns Destination:=Rng.Offset(0, 2)(1, 1), DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, Other:=True, OtherChar:="(", FieldInfo:=Array(Array(1, 1), Array(2, 1))
'on réactive les alertes excel
Application.DisplayAlerts = True
'on supprime la parenthèse fermante
Rng.Offset(0, 3).Replace ")", "", xlPart
Set Rng = Nothing |
Partager