Bonjour ebusmaximus
, le Forum
.
Oui, si tu ne veux pas avoir de lignes vides, bien sûr qu'il faut ajouter la condition dans la macro. Un exemple :
Dim WsSource As Workbook, ShSource As Worksheet
Set WsSource = WorkBooks("C.xlsx") : Set ShSource = WsSource.Sheets(1)
With ShSource
If .Cells(derlig, "C") = vbNullString Then 'vbNullString = cellule vide.
Exit Sub
Else
Cells(derlig, "E") = .Cells(derlig, "E")
End If
End With