ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problem with Filesearch (https://www.excelbanter.com/excel-programming/293218-problem-filesearch.html)

MikeM[_5_]

Problem with Filesearch
 
I have a directory with data for the 50 states (AK.xls,
AR.xls, etc.). I have an Excel file with a column listing
these 50 file names. I select a cell in this column.

I have written a macro that reads the cell text and
searches for the file, using Filesearch. It works perfectly
-- on 49 of the states. I change the file name from AR.xls
to ZZ.xls, and do the same in the column, and it works. I
change them both back to AR.xls and it doesn't. I'm
mystified. Can anyone help on this?


All times are GMT +1. The time now is 08:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com