Bonjour,
J'ai essayé de faire un petit code mais ça ne fonctionne pas, sachant que le fichier exel que je met sur le site est tres simplifié:
Sub Macro1()
Dim DerLig As Long, Ligne As Long
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
With Worksheets("Feuil1")
DerLig = .Range("AB" & Rows.Count).End(xlUp).Row
For Ligne = DerLig To 2 Step -1
If .Range("A" & Ligne).Value = "=23/01*" Then .Range("A" & Ligne).Value = "=24/01*"
Next Ligne
End With
Application.Calculation = xlCalculationAutomatic
End Sub
Sinon j'ai essayé avec le code suuivant: ça marche quand il s'agit de mettre le résultat dans une autre colonne mais pas de modifier la colonne meme.
Sub fe()
With Worksheets("Feuil1")
Dim i As Long
i = .Range("A" & Rows.Count).End(xlUp).Row
.Range("A2").Formula = "=IF(LEFT(RC[-1],5)=""23/01"",CONCATENATE(""24/01"",RIGHT(RC[-1],5)),RC)"
.Range("A2").AutoFill Destination:=.Range("AB2:AB" & i), Type:=xlFillDefault
End With
End Sub
Merci