How to open Locked for Editing file as Read Only?
I have a macro that opens multiple files. If it comes to a file "Locked for Editing" it will give me an error saying FileName is currently in use. Try again later. How can I make it open said file as read only? I tried: Workbooks.Open FileName:=Selected_EOS_Report_File, ReadOnly:=True and Workbooks.Open FileName:=Selected_EOS_Report_File, ReadOnly:=True, IgnoreReadOnlyRecommended:=True Update: The first method does work. My code runs on multiple files that pass through the "Selected_EOS_Report_File" variable. At some point a file passed through that was an Excel temp file (begins the filename
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.