- ©«¤l
- 1
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 2
- ÂI¦W
- 0
- §@·~¨t²Î
- WIN7
- ³nÅ骩¥»
- OFFICE2007
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2014-9-3
- ³Ì«áµn¿ý
- 2014-9-12
|
[µo°Ý] ¦³¤j¤j¯àÀ°¦£¶ÜApplication.FileSearch
¦U¦ì¤j¤j̦n¡A¦]¬°excel§ó·s«áµ{¦¡µLªk¥Î¤F¡A
¤U¦Cµ{¦¡¦³°ÝÃD¡A¦ý¤p§Ì¤S¤£·|§ï¡A§Æ±æ¦³°ª¤â
¯àÀ°¦£¡I
Set FS = Application.FileSearch
With FS
.LookIn = FilePath
.FileName = FileSpec
.FileType = msoFileTypeExcelWorkbooks
.Execute
If .FoundFiles.Count = 0 Then
MsgBox "No files were found !"
Exit Sub
End If
End With |
|