Vous utilisez un navigateur obsolète. Il se peut que ce site ou d'autres sites Web ne s'affichent pas correctement. Vous devez le mettre à jour ou utiliser un navigateur alternatif.
Boostez vos compétences Excel avec notre communauté !
Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force.
Apprenez, échangez, progressez – et tout ça gratuitement !
👉 Inscrivez-vous maintenant !
Option Explicit
Sub test()
Dim cr1$, cr2$, derlig&, i&, cr3
With Feuil1
derlig = .Cells(Rows.Count, 1).End(xlUp).Row
cr1 = "<path id="""
cr2 = "title="""
For i = 5 To derlig
cr3 = Format("0" & (i - 5) + 2, "dd")
.Cells(i, 4) = cr1 & cr3 & """ " & cr2 & .Cells(i, 1)
Next i
End With
End Sub
Sub test()
Dim cr1$, cr2$, derlig&, i&, x&, cr3
With Feuil1
derlig = .Cells(Rows.Count, 1).End(xlUp).Row
cr1 = "<path id="""
cr2 = "title="""
x = 0
For i = 5 To derlig
x = x + 1
cr3 = Format("0" & x + 1, "dd")
.Cells(i, 4) = cr1 & cr3 & """ " & cr2 & .Cells(i, 1)
Next i
End With
End Sub
Sub test()
Dim cr1$, cr2$, derlig&, i&, x&, cr3
With Feuil1
derlig = .Cells(Rows.Count, 1).End(xlUp).Row
cr1 = "<path id="""
cr2 = "title="""
x = 0
For i = 5 To derlig
x = x + 1
cr3 = Format("0" & x + 1, "dd")
.Cells(i, 4) = cr1 & cr3 & """ " & cr2 & .Cells(i, 1)
If x > 30 Then
cr3 = x
.Cells(i, 4) = cr1 & cr3 & """ " & cr2 & .Cells(i, 1)
End If
Next i
End With
End Sub
Une correction du code, désolé pour le désagrément. 😳
VB:
Sub test()
Dim cr1$, cr2$, derlig&, i&, x&, cr3
With Feuil1
derlig = .Cells(Rows.Count, 1).End(xlUp).Row
cr1 = "<path id="""
cr2 = "title="""
x = 0
For i = 5 To derlig
x = x + 1
cr3 = Format("0" & x, "00")
.Cells(i, 4) = cr1 & cr3 & """ " & cr2 & .Cells(i, 1)
Next i
End With
End Sub
- Navigue sans publicité - Accède à Cléa, notre assistante IA experte Excel... et pas que... - Profite de fonctionnalités exclusives Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel. Je deviens Supporter XLD