- ©«¤l
- 438
- ¥DÃD
- 67
- ºëµØ
- 0
- ¿n¤À
- 531
- ÂI¦W
- 30
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-10-30
- ³Ì«áµn¿ý
- 2024-11-19
|
- Sub Load_State_Detail()
- Dim FRng As Range
- Dim A As Range, rng As Range
- Dim I As Integer
- Dim LastRec As Integer
- fs = "W:\Payment Daily Report\HK ETA update.xlsm"
- Set wb = Workbooks.Open(fs)
- With ThisWorkbook.Worksheets("State")
- For Each A In .Range(.[A2], .Range("A1").End(xlDown))
- Set FRng = wb.Sheets("HK HAIPONG").Range("A:A").Find(A, lookat:=xlWhole, SearchDirection:=xlPrevious)
- If Not FRng Is Nothing Then
- If Trim(FRng.Offset(, 11).Value) <> "" Then
- A.Offset(, 1) = FRng.Offset(, 11).Value
- If rng Is Nothing Then Set rng = A.Offset(, 1) Else Set rng = Union(rng, A.Offset(, 1))
- End If
- End If
- Set FRng = Nothing
- Next
- End With
- wb.Close 0
-
- fs = "W:\Payment Daily Report\Mainland ETA Update.xlsm"
- Set wb = Workbooks.Open(fs)
- With ThisWorkbook.Worksheets("State")
- For Each A In .Range(.[A2], .Range("A1").End(xlDown))
- Set FRng = wb.Sheets("MAILAND ETA").Range("A:A").Find(A, lookat:=xlWhole, SearchDirection:=xlPrevious)
- If Not FRng Is Nothing Then
- If Trim(FRng.Offset(, 11).Value) <> "" Then
- A.Offset(, 1) = FRng.Offset(, 11).Value
-
- If rng Is Nothing Then Set rng = A.Offset(, 1) Else Set rng = Union(rng, A.Offset(, 1))
- End If
- End If
- Set FRng = Nothing
- Next
- End With
- wb.Close 0
- end sub
½Æ»s¥N½X ¦^´_ 24# Hsieh
With ThisWorkbook.Worksheets("State") ³o¥y¬O¤£¬O«ü¥Ü¤FMaster.xlsm¤ºªºState Sheet¶Ü¡H |
|