ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

½Ð°Ý Application.FileSearch '°õ¦æ¶¥¬q¿ù»~2455 ,½Ð°Ý³oÀ³¸Ó«ç»ò­×§ï?

½Ð°Ý office ª©¥»?, ¥i¥H´« FileSystemObject ¨Ó¥Î
  1. Dim FSO As Object
  2. Dim localfolder As String

  3. Set FSO = CreateObject("Scripting.FileSystemObject")
  4. localfolder = "D:\¸ê°T-­ì©l\"
  5. Set fld = FSO.GetFolder(localfolder)

  6. For Each myFileName In fld.Files
  7.    
  8.     If FSO.GetExtensionName(localfolder & myFileName.Name) = "xls" Then
  9.         Debug.Print myFileName.Name
  10.     End If
  11. Next
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : ¨Ã«D¦³¿ú¾{¬O§Ö¼Ö¡A°Ý¤ßµL·\¤ß³Ì¦w¡C
ªð¦^¦Cªí ¤W¤@¥DÃD