- ©«¤l
- 234
- ¥DÃD
- 19
- ºëµØ
- 0
- ¿n¤À
- 276
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows XP
- ³nÅ骩¥»
- office 2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2013-1-7
- ³Ì«áµn¿ý
- 2021-10-7
|
¦^´_ 1# lin0902
´£¨Ñ°Ñ¦Ò
Sub ex()
Dim file$, fn$, wb As Workbook
Application.ScreenUpdating = False
r = 1
file = Dir(ThisWorkbook.Path & "\*.xls*")
Do While file <> ""
If Split(file, ".")(0) >= Format(Date, "mmdd") & "0700" And Split(file, ".")(0) <= Format(Date, "mmdd") & "1500" Then
fn = ThisWorkbook.Path & "\" & file
Set wb = GetObject(fn)
'---------------³o¤@¬qn°µ¤°»ò½Ð¦Û¦æקï--------
'Set sht = wb.Worksheets(1)
'arr = sht.[a1].CurrentRegion
'Cells(r, "a") = arr
'-------------------------------------------------
wb.Close False
End If
r = r + 1
file = Dir
Loop
Application.ScreenUpdating = True
End Sub |
|