返回列表 上一主題 發帖

[發問] 有大大能幫忙嗎Application.FileSearch

[發問] 有大大能幫忙嗎Application.FileSearch

各位大大們好,因為excel更新後程式無法用了,
下列程式有問題,但小弟又不會改,希望有高手
能幫忙!

    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

TOP

        靜思自在 : 成功是優點的發揮,失敗是缺點的累積。
返回列表 上一主題