Bonsoir Harissa23, Banzai64, Sophie85, le forum
Effectivement, tes données sont importées, il faut commencer par un bon coup de nettoyage
A tester sur la feuille concernée.
Sub Remplir()
Dim myAreas As Areas, myArea As Range, e
With [A1:E166]
.Value = [index(trim(clean(A1:E166)),)]
End With
Range("F2:F" & Range("A" & Rows.Count).End(xlUp).Row) = 1
On Error Resume Next
Set myAreas = Range("f2", Range("f" & Rows.Count).End(xlUp)).SpecialCells(2).Areas
If Not myAreas Is Nothing Then
For Each myArea In myAreas
For Each e In Array("a", "c")
With myArea.EntireRow.Columns(e)
.SpecialCells(4).Formula = "=r[-1]c"
.Value = .Value
End With
Next
Next
End If
Columns("f").Delete
Set myArea = Nothing
End Sub
klin89