- ©«¤l
- 52
- ¥DÃD
- 12
- ºëµØ
- 0
- ¿n¤À
- 63
- ÂI¦W
- 0
- §@·~¨t²Î
- window
- ³nÅ骩¥»
- XP
- ¾\ŪÅv
- 20
- µù¥U®É¶¡
- 2014-8-15
- ³Ì«áµn¿ý
- 2023-3-24
|
- Option Explicit
- Sub test12()
- Dim p As String
- Dim f As String
- Dim ws As Worksheet
- Dim wb As Workbook
- Dim r As Range
-
- p = "D:\TEMPWS\" 'CVSÀɮתº¸ê®Æ§¨
-
- f = Dir(p & "*.csv")
- If f = "" Then Exit Sub
- Set ws = Workbooks.Open(p & f).Sheets(1)
-
- f = Dir()
- Do While f <> ""
- Set wb = Workbooks.Open(p & f)
- Set r = ws.Cells(Rows.Count, 1).End(xlUp).Offset(1)
- wb.Sheets(1).Cells(1).CurrentRegion.Offset(1).Copy Destination:=r
- wb.Close
- f = Dir()
- Loop
- Application.Goto ws.Cells(1)
- End Sub
½Æ»s¥N½X |
|