something like this

 Dim CellPtr As Long
 
 For CellPtr = 1 To Cells(Rows.Count, "Q").End(xlUp).Row
    If Cells(CellPtr, "Q").Value = 0 Then Exit For
 Next
End Su