| ©«¤l835 ¥DÃD6 ºëµØ0 ¿n¤À915 ÂI¦W1  §@·~¨t²ÎWin 10,7 ³nÅ骩¥»2019,2013,2003 ¾\ŪÅv50 ©Ê§O¨k µù¥U®É¶¡2010-5-3 ³Ì«áµn¿ý2025-7-5 
 | 
                
| §â¦hµ§excel¦WºÙ¬°¼Æ¦r(¦p¤U¹Ï)¥B¤£³sÄòªºÀÉ®×¾ã¦X¨ì¦P¤@ÓexcelÀÉ(¦hµ§excelÀɮפº®e®æ¦¡³£¤@¼Ë¡A¥u¦³¼Æ ...
 smart00361 µoªí©ó 2014-11-20 16:45
 ½Æ»s¥N½XSub nn()
  Dim lRow&
  Dim sFlNm$
  Dim shTar As Worksheet
  
  Set shTar = ThisWorkbook.Sheets(1)
  With shTar
    .Cells.Clear
    .[A1].Select
  End With
  sFlNm = Dir("*.xls")
  lRow = 2
  Do While sFlNm <> ""
    With Workbooks.Open(sFlNm, , 1)
      shTar.Activate
      With .Sheets(1).Cells(lRow, 1)
        shTar.Cells(lRow, 1) = Left(sFlNm, Len(sFlNm) - 4)
        shTar.Cells(lRow, 2) = Application.Sum(.Parent.Range("B106:B287")) / 182
        .Range("B87:B107").Copy
        shTar.Cells(lRow, 3).PasteSpecial Transpose:=True
      End With
      .Close False
    End With
    sFlNm = Dir
    lRow = lRow + 1
  Loop
End Sub
 | 
 |