• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Run Time Error '70' Permission denied

ThrottleWorks

Excel Ninja
Hi,

I am getting "Run Time Error '70' Permission denied" bug while running a macro.

The bug is caused at below mentioned line.
FileCopy NewTypeDPath & FileName, NewPath & FileName

I checked NewTypeDPath and NewPath in Immediate window. It is showing correct path.
I copied same path and enter manually in windows run, the path is valid and accessible.

Not able to understand what is causing the bug, can anyone please help in this.

Please let me know if you required further details.
 
Hi @chirayu , thanks a lot for the help. Good night.

Hi @Deepak Sir, yes, you are right, the file is open, first I was checking if the path is valid, since path was valid I got confused.

Later I checked if the file exist, then I realized it is open. Thanks a lot for the help. Good night. :)

PS - The file is shared and was open at another PC. And I was closing entire excel application at user's PC. :DD
 
Back
Top