It is saying cell.row is an invalid qualifier
Code:
Dim cell As Integer
Dim msg As String
Application.ScreenUpdating = False
On Error Resume Next
cell = 12
Range("A7:Z" & cell.Row - 1).Sort Key1:=Range("B7"), Order1:=xlAscending, Header:=xlGuess
Else
Application.ScreenUpdating = True
msg = "No 0 values found, cannot determine last row of customer"
msg = msg & vbCrLf & vbCrLf & "Macro exiting"
MsgBox msg
Exit Sub
End If
Application.ScreenUpdating = True