I wrote some code to inspect all workbooks in a file structure, but am
now getting an error "1004" on a workbook with an odd character in it.
The first thing I do is use a DIR command (through SHELL) to generate a
text file of all XLS files in the structure, then I loop through the
text file to open each workbook and do my processing.
The name of one of the workbooks is: Tubar=E2o.xls
But the output from the DIR command shows: Tubar=83o.xls
So, of course, when the OpenWorkbook statement tries to open this
workbook, which the text file says is there, it can't find it.
Does anyone know what I can do to get around this? And no, I can't
rename it, these files come from other sources and I have no control on
the name of the file.
TIA
Larry
Bookmarks