到目前为止,我拥有的代码....获取 PO 生成器上的原始订单并将其复制到 PO 日志中,只要它们是新订单就可以了。当我需要更新以前的订单时,我的问题就出现了。我希望它找到原始订单并更新参考单元格。请帮助.... Excel 2003
Sub Get_Po()
'
' Get_Po Macro
Dim ws1 As Worksheet
Dim ws2 As Worksheet
Dim dest As Range
Set ws1 = Sheets("PO GENERATOR")
Set ws2 = Sheets("PO LOG")
Set dest = ws2.Range("a1").End(xlDown).Offset(1)
Sheets("PO GENERATOR").Select
Selection.AutoFilter Field:=3, Criteria1:="<>"
ws1.Range("2:5135").Copy
dest.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Sheets("Type II Log").Select
End Sub