Try this. UN tested
Sub_Copy_Discrepancy_Tools ()
with Sheets ("INV")
dest=.Cells (Rows.Count, "A") .End(xlup) (2, 1)
If .Range ("A39") < "Shortage" Then
Sheets ("Discrepancy Tools") .Range (A1:P201") .copy dest
Else
Sheets ("Discrepancy Tools") . Range ("Q1:AF266") .Copy dest
end if
end with
End Sub.