Hi
We are using a VBA-Macro which opens about 180 files in order to update them. Sometimes it happens that one of those files, is already in use by another user, then an error message appears which says “A file named ‘XY.xls’ already exists in this location. Do you want to replace it?” Then I press the “No” button. After that a Visual Basic error message pops-up “Run-time error’1004’: ‘XY.xls’ is read-only. To save a copy, click OK, then give the workbook a new name in the Save As dialog box”.
The idea would be that the macro updates all 180 files unless one is already in use. In this case the macro should just close the file without saving.
It would be great to get some help. Thanks a lot.
Michael
Bookmarks