I've been learning more and more about Macros and VBA to automate a small report I need to perform on a daily basis.
I still can't write code from memory but understand a little which is why I'm dangerous. With a bit of googling and modification the code was tested and all working locally before moving to the network drive location. After moving, my code falls down at pretty much the first action of finding the name of a file to copy into the existing report.
The reason I'm not using explicit filenames is because there is date added to the file I'm copying in.
This line is where I get a Run-time error '52' Bad filename or number.
When it fails out hovering over activeworkbook.path show's the UNC path \\blahblah\folder\folder2 but sFound is = "".Please Login or Register to view this content.
Can I modify the existing code in any way to work with UNC paths?Please Login or Register to view this content.
Bookmarks