1 2 3 4 5 6 7 8 9 10 11 12
|
For I = LineDebalf To LineFinalf 'pour chaque ligne entre début et fin coller à la suite si non vide
If Sheets(WSALFAN).Cells(I, 2).Value <> "" Then
If Sheets(WSALFAN).Cells(I, 2).Value Like "-*" Then
Sheets("PUBLIPOSTAGE - IMPORT MSG").Cells(2, 11) = Sheets("PUBLIPOSTAGE - IMPORT MSG").Cells(2, 11) & Chr(10) & Sheets(WSALFAN).Cells(I, 2) & Chr(10) & Chr(10) & Chr(10)
Else
Sheets("PUBLIPOSTAGE - IMPORT MSG").Cells(2, 11) = Sheets("PUBLIPOSTAGE - IMPORT MSG").Cells(2, 11) & Chr(10) & Sheets(WSALFAN).Cells(I, 2)
End If
End If
Next |
Partager