Bonjour, ce bout de code me positionne le chiffre 1 suivant la colonne A, j'aimerais avoir le chiffre 2 suivant la colonne A et B
Je joint mon fichier pour mieux me faire comprendre
Merci
Dim derlig&, mondico As Object
Set mondico = CreateObject("scripting.dictionary")
With Sheets("declinaisons")
derlig = .Range("A" & .Rows.Count).End(xlUp).Row
For Each c In .Range("A2:A" & derlig)
If Not mondico.exists(c.Value) Then
mondico(c.Value) = mondico(c.Value)
c.Offset(, 11) = 1
c.Offset(, 12) = 1
End If
Next c
End With
Je joint mon fichier pour mieux me faire comprendre
Merci
Dim derlig&, mondico As Object
Set mondico = CreateObject("scripting.dictionary")
With Sheets("declinaisons")
derlig = .Range("A" & .Rows.Count).End(xlUp).Row
For Each c In .Range("A2:A" & derlig)
If Not mondico.exists(c.Value) Then
mondico(c.Value) = mondico(c.Value)
c.Offset(, 11) = 1
c.Offset(, 12) = 1
End If
Next c
End With
Pièces jointes
Dernière édition: