Aide Concatener

R

Roger

Guest
Bonjour,je joint le fichier dans lequel je vous expose mon problème.
Merci pour votre aide.Bonne journée a tous.
 

Pièces jointes

  • Concatener.zip
    4 KB · Affichages: 17
  • Concatener.zip
    4 KB · Affichages: 24
  • Concatener.zip
    4 KB · Affichages: 22
V

Vik Leroy

Guest
Essaie ça
A adapter suivant tes besoins

Sub test()
LIGNE = 24
I = 2
OLDCODFICH = Cells(I, 1).Value
Do
CODFICH = Cells(I, 1).Value
If CODFICH <> OLDCODFICH Then
LIGNE = LIGNE + 1
End If
Cells(LIGNE, 2).Value = Cells(LIGNE, 2).Value & Cells(I, 2).Value
I = I + 1
OLDCODFICH = CODFICH
Loop Until I = 23
End Sub

Vik
 

Statistiques des forums

Discussions
313 031
Messages
2 094 573
Membres
106 054
dernier inscrit
Mohajer