- - Help with VBA
(https://www.excelbanter.com/excel-programming/295856-re-help-vba.html)
Don Guillett[_4_]
Help with VBA
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.