ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

¦p¦ó¨Ï¥Î°}¦C¨ì¤£¦Psheet§ì¨ú¸ê®Æ

¦^´_ 1# yueh0720
  1. Private Sub Update_Click()
  2. Dim y&, xR As Range, uP$, uF$, Ar(), Sh As Worksheet
  3. uP = ThisWorkbook.Path & "\"
  4. Application.ScreenUpdating = False
  5. With Sheet1
  6. For Each xR In .Range(.[A2], .[A65536].End(3)).SpecialCells(xlCellTypeConstants)
  7.     If Dir(uP & xR) = "" Then GoTo 101
  8.     With Workbooks.Open(uP & xR)
  9.        For Each Sh In .Sheets
  10.        With Sh
  11.          ReDim Preserve Ar(s)
  12.          Ar(s) = Array(.[C5].Value, .[D10].Value, .[J21].Value, .[J26].Value)
  13.          s = s + 1
  14.        End With
  15.        Next
  16.     .Close 0
  17.     End With
  18. xR.Offset(, 1).Resize(s, 4) = Application.Transpose(Application.Transpose(Ar))
  19. Erase Ar: s = 0
  20. 101: Next
  21. End With
  22. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

        ÀR«ä¦Û¦b : ¡i®É¶¡¦¨´N¤@¤Á¡j®É¶¡¥i¥H³y´N¤H®æ¡A¥i¥H¦¨´N¨Æ·~¡A¤]¥i¥HÀx¿n¥\¼w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD