Visual Basic FileSearch Problem within an Excel Workbook

  • Thread starter Thread starter Glen
  • Start date Start date
G

Glen

I have written a file seach Visual Basic program that
searches a folder for all files that contain specified
test. The file search works fine except when it
encounters an Excel file. Then the program terminates and
closes all Excel windows. The Excel workbook is opened in
a folder that is not involved in the file search.

I would appreciate any suggestions. Currently, as a stop
gap, I sceen the folder for any Excel files and remove
them before seaching that folder.

Glen
 
Back
Top