Temporary files now being 'read'

George J

Well-known Member
Joined
Feb 15, 2002
Messages
959
We have changed to a cloud server recently, which may be causing the problem, but has anyone come across this before?

I have a folder with a "- Fees" workbook and a workbook for each member of staff.
When the fee workbook is opened, it takes data from each of the workbooks in the folder, apart from "- Fees", and collates the data into the workbook.

It is now coming up with Run-time error '1004':
Excel cannot open the file '~$- Fees.xlsm' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.

My understanding is that this is the temporary (autosave) file, but this did not used to be read or cause a problem with code in this manner. I know I can amend the code to ignore any files beginning with "~$", but is there something i am missing? Why would Excel be looking at a temporary file?

thanks
George
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top