- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
§â¦hµ§excel¦WºÙ¬°¼Æ¦r(¦p¤U¹Ï)¥B¤£³sÄòªºÀÉ®×¾ã¦X¨ì¦P¤@ÓexcelÀÉ
(¦hµ§excelÀɮפº®e®æ¦¡³£¤@¼Ë¡A¥u¦³¼Æ ...
smart00361 µoªí©ó 2014-11-20 16:45 - Sub 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
½Æ»s¥N½X |
|