Je cherche a me positionner sur le première cellule vide d'une colonne, en partant du début (il peut y avoir des cellules non vides après celle-là).
Mon code plante sur le Range. Problème de syntaxe ?
Dim Colonne As String
Dim Lig As Long
Lig = 1
Do While Not IsEmpty(Range(Colonne & Lig))
Lig = Lig + 1
Loop
MsgBox("La première cellule vide est sur la ligne ligne : " & Lig)
Public Sub XXX()
Dim lCol As Long, Cell As Range
lCol = 1
If Not IsEmpty(Cells(lCol)) Then Set Cell = Cells(lCol).End(xlDown).Offset(1)
MsgBox ("La premi?re cellule vide est sur la ligne : " & Cell.Row)
End Sub