View Single Post
 
Old 04-01-2021, 01:04 PM
mbcohn mbcohn is offline Windows 10 Office 2016
Advanced Beginner
 
Join Date: Jan 2021
Posts: 32
mbcohn is on a distinguished road
Default

And now I'm getting a run-time error. I'm not sure why. I can't figure out what about the situation has changed. I went back through the thread and re-pasted every bit of code and every change to be sure, and I also moved the files from one location to another. I've also tried restarting Word, and my computer.



The error says: "Run-time error '5174': Sorry, we couldn't find your file. Was it moved, renamed, or deleted?"


The line of code that this error happens on is:


Code:
 Set wdDoc = Documents.Open(FileName:=strFolder & "" & strFile, AddToRecentFiles:=False, Visible:=False)

I feel like this must be something happening on my end outside the program, but I can't imagine what it could be.
Reply With Quote