返回列表 上一主題 發帖

[發問] 有大大能幫忙嗎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

        靜思自在 : 【時日莫空過】一個人在世間做了多少事,就等於壽命有多長。因此必須與時間競爭,切莫使時日空過。
返回列表 上一主題