Private Sub Workbook_BeforeClose(Cancel As Boolean)
Const TEST_COLUMN As String = "A" '<=== change to suit
Dim i As Long
Dim LastRow As Long
Dim msg As String
Dim msg2 As String
With ActiveSheet
LastRow = .Cells(.Rows.Count, TEST_COLUMN).End(xlUp).Row
For i = 15 To 200
If i > 129 And i < 143 Then i = 143
If IsNumeric(.Cells(i, "J").Value) And IsNumeric(.Cells(i, "Q").Value) And .Cells(i, "Q").Value <> 0 Then
If .Cells(i, "J").Value > .Cells(i, "Q").Value * 1.4 Then
msg = msg & .Cells(i, "A").Address & " - " & .Cells(i, "A").Value & vbNewLine
End If
If .Cells(i, "n").Value > .Cells(i, "x").Value Then
msg2 = msg2 & .Cells(i, "A").Address & " - " & .Cells(i, "A").Value & vbNewLine
End If
End If
Next i
End With
End Sub