Dim maCellule As Range Dim lDernièreLigne As Long Dim r As Long Dim bIncomplet As Boolean lDernièreLigne = Range("A1").End(xlDown).Row + 1 For Each maCellule In Range("A:A") bIncomplet = False ' par défaut If maCellule.Row = lDernièreLigne Then Exit For For r = 0 To 3 ' Colonne A à colonne D If IsEmpty(maCellule.Offset(0, r)) Then bIncomplet = True Exit For End If Next r If bIncomplet Then Exit For DoEvents Next If bIncomplet Then MsgBox "La ligne " & maCellule.Row & " est incomplète" Else MsgBox "Données complètes. Première ligne vide : " & maCellule.Row End If
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question