¡@¼ÊºÙ: ÀH·ÄÆ¿ºªº¦Ð¤ò ¡@ÀY»Î: [±s¥Î]¼ç¤ô¸¥
°ª¤¤¥Í 
- ©«¤l
- 852
- ¥DÃD
- 79
- ºëµØ
- 0
- ¿n¤À
- 918
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows 7 , XP
- ³nÅ骩¥»
- Office 2007, Office 2003,Office 2010,YoZo Office
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¦t©z
- µù¥U®É¶¡
- 2011-4-8
- ³Ì«áµn¿ý
- 2024-2-21
|
¦^´_ 1# 198188
¦b¤U´£¨Ñ´XÓ¤p«ØÄ³..
1.
¥i¥H±N Worksheets("Result") ³]¬°©w¼Æ ( ¦p KK= Worksheets("Result"))
³o¼Ëªº¸Ü-
- .Cells(j, "B") = KK.Range("S" & j).Value
- .Cells(j, "O") = KK.Range("L" & j).Value
- .Cells(j, "F") = KK.Range("E" & j).Value
- .Cells(j, "K") = KK.Range("U" & j).Value
- .Cells(j, "L") = KK.Range("V" & j).Value
- .Cells(j, "P") = KK.Range("AL" & j).Value
- .Cells(j, "Q") = KK.Range("Q" & j).Value
- .Cells(j, "R") = KK.Range("M" & j).Value
- .Cells(j, "S") = KK.Range("N" & j).Value
- .Cells(j, "T") = KK.Range("X" & j).Value
- .Cells(j, "U") = KK.Range("Z" & j).Value
- .Cells(j, "W") = KK.Range("K" & j).Value
- .Cells(j, "X") = KK.Range("C" & j).Value
½Æ»s¥N½X 2.¶}±Ò¡B½Æ»sÀɮ׳¡¥÷
µy·L¬Ý¤F¤@¤U ¦³§ó°Êªº¦a¤è¶È( fs ¡Bthisworkbook.worksheets("xxx") ¡B A.Offset(,X))
³o¼Ëªº¸Ü¥i¥H ¦Ò¼{¥Î Select Case ... End Select §@´À¥N Ãþ¦ü¥H¤U¤èªk- '¦p¦³9¶µ
- for uuw = 1 to 9
- select case uuw
- case 1
- fs = "W:\PIHK\NEW»´ä¿ì¤½«Ç¥¿¥»¦¬©ñ³æ°O¿ýFROM 01-MAR-2012 to current(updated).xlsx"
- Set Wb = Workbooks.Open(fs)
- With ThisWorkbook.Worksheets("State")
- For Each A In .Range(.[A2], .Range("A1").End(xlDown))
- Set FRng = Wb.Sheets("¦¬³æ°O¿ý").Range("C:C").Find(A, lookat:=xlWhole, SearchDirection:=xlPrevious)
- If Not FRng Is Nothing Then
- A.Offset(, 9) = FRng.Offset(, 4).Value
- If Rng Is Nothing Then Set Rng = A.Offset(, 7) Else Set Rng = Union(Rng, A.Offset(, 7))
- Set FRng = Nothing
- end if
- Next
- End With
- case 2
- case 3
- case 4
- case 5
- case 6
- case 7
- case 8
- case 9
- end select
- Wb.Close 0
- next uuw
½Æ»s¥N½X |
|