on-internet
← Community

Excel VBA - Getting error when opening files

Stack Overflow ·

I have a piece of code that opens all files in folder X. For some apparently random files, it can't open them. However, if I open them manually, save, close and re-run the code, everything works. Why is that? Set wbRFQ = Workbooks.Open( _ Filename:=CStr(File), _ ReadOnly:=True, _ UpdateLinks:=0)

Comments

Sign in or sign up to comment and upvote.

No comments yet.