[attach]13093[/attach]
Sub JPM()
Dim i As Integer, j As Integer, k As Integer, l As Integer
Dim rowC As Integer
Dim rB As Range
Dim data() As String
Dim found As Boolean
DATA BASE (SHEET1)
欄數由A :Z
ITEM NO / STATE / SO / BUYER / AGENT / ETA /RECEIVE DATE/ RECEIVE TRACKING NO/ RECEIVE OBL/RECEIVE OHC/RECEIVE OTHER DOCS/RECEIVE REMARK/SEND DATE/SEND TRACKING NO/ SEND OBL/SEND OHC/SEND OTHER DOCS/SEND REMARK/ JPM DATE/JPM REF NO/JPM OBL/JPM OHC/ JPM OTHER DOCS/JPM REMARK/JPM US ARRANGE PAYMENT ON/JPM HK PICK UP ON
JPM WORKSHEET (JPM)只顯示這些資料
欄數由A : G
JPM DATE / JPM REF NO / SO/JPM DOCS LIST(JPM OBL, JPM OHC, JPM OTHER DOCS 合併)/JPM REMARK/JPM US ARRANGE PAYMENT ON/JPM HK PICK UP ON作者: 198188 時間: 2012-11-13 10:20
DATE TRACKING NO SO NO MM BUYER PLANT BOXES CONTAINER NO ORIGIN ETD ETA DOCS LIST REMARK US ARRANGE PAYMENT ON HK PICK UP ON作者: 198188 時間: 2012-11-13 18:18
Dim LastRec As Integer
Dim j As Integer
Dim i As Integer
Dim l As Integer
Dim data() As Range
l = 1
fs = "C:\Documents and Settings\USER\桌面\HK ETA update.xlsx" 這句出現error 執行階段錯誤'13'型態不符合!
Set wb = Workbooks.Open(fs)
For Each A In .Range(.[A2], .Range("A1").End(xlDown))
Set FRng = wb.Sheets("New form of payment report").Range("A:A").Find(A, lookat:=xlWhole) 這句只是由A1開始順序找尋下去,得出答案是第一個相同的資料。請問有無方法將它改成由A65536 開始順序找尋上去,得出答案是最後相同的資料
If Not FRng Is Nothing Then