Bonjour
Je cherche une macro pour etre capable de concaténer des milliers de lignes (plus de 12 000).
J'avais trouvé la macro suivante:
Mais ca bloque.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Function ConcatRange(inputRange As Range, Optional delimiter As String) As String Dim oneCell As Range With inputRange If Not (Application.Intersect(.Parent.UsedRange, .Cells) Is Nothing) Then For Each oneCell In Application.Intersect(.Parent.UsedRange, .Cells) If oneCell.Text <> vbNullString Then ConcatRange = ConcatRange & delimiter & oneCell.Text End If Next oneCell ConcatRange = Mid(ConcatRange, Len(delimiter) + 1) End If End With End Function
Avez vous des idées? est ce réalisable d'ailleurs?
Merci
Partager