- ©«¤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
|
Desktop.rar (440.64 KB)
- 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
- 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
- Set FRng = Nothing
- Next
- End With
- wb.Close 0
½Æ»s¥N½X ¦^´_ 17# Hsieh
³oÓµ{¦¡À³¸Ó¬O·|¦Û°Ê§ó·sMaster.xlsxªºBÄæ¸ê®Æ¡A¦ý¬O§Úµo²{¦³¨Ç°µ¤£¤F¡A¨Ò¦p209519 Master.xlsx¬O22/3¡A¦ý¬OHK HAIPONG sheet ¬O21/3¡A ¤£À´±o§ó·s¡A½Ð°Ýþ¸Ì¦³°ÝÃD¡H
¥t¥~¦pªG¦bHK HAIPONG sheet ¤¤§ä¨ì¦³¡A¦ý¬OOffset(, 11).Value¬OªÅ®æ¡A´N¤£ÅÜ,§Ú§ï¤F³o¥yIf Trim(FRng.Offset(, 11).Value) <> "" then A.Offset(, 1) = FRng.Offset(, 11).Value¡A¦ý¬O¨S¦³§@¥Î¡A½Ð°Ý¬O§_¦³¿ù¡H
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
Set FRng = Nothing
Next
End With
wb.Close 0 |
|