Hey there, I'm trying to set the read only attribute on all files in a folder. Yesterday I used SetAttr and it worked fine. I came in this morning and tested out my code again, and now it keeps giving me a "file not found" error, but nothing has changed between 5 o'clock last night and 8 this morning. Here's my code
What I'm doing is creating a simple interface that will allow me to update formulas in a folder full of workbooks. It sets read only as normal, opens them, unprotects the sheet, replaces the formula, protects the sheet, saves, closes, sets the file as read only, and moves on to the next file in the folder.![]()
Please Login or Register to view this content.
My problem is it's now errorring out on theline and saying "file not found." What am I doing wrong? This worked yesterday evening. Is there a different way to set this attribute? I've searched but haven't found anything useful![]()
Please Login or Register to view this content.
Bookmarks