1 2 3 4 5 6 7 8 9 10 11 12
| Sub Intervertir()
Dim DerLig As Long, i As Long
Application.ScreenUpdating = False
DerLig = Range("A" & Rows.Count).End(xlUp).Row
For i = 2 To DerLig
If Right(Cells(i, "A"), 1) = "N" Or Right(Cells(i, "A"), 1) = "S" Then
Cells(i, "A") = Right(Cells(i, "A"), 1) & " " & Left(Cells(i, "A"), Len(Cells(i, "A")) - 2)
End If
If Right(Cells(i, "B"), 1) = "E" Or Right(Cells(i, "B"), 1) = "O" Then
Cells(i, "B") = Right(Cells(i, "B"), 1) & " " & Left(Cells(i, "B"), Len(Cells(i, "B")) - 2)
End If
Next i |
Partager