Share via

Copy sheets problem

Anonymous
2018-03-03T04:36:43+00:00

Hello,  I use MS Excel 2013. I wrote macro to copy sheets 

               Sheets(Array("Produce Request", "NextORG", "Shop_Plan", "Shop Feeder", "Export")).select

               Sheets(Array("Produce Request", "NextORG", "Shop_Plan", "Shop Feeder", "Export")).Copy

then, it shows error  File not found, 'C:\Users\Boonle\AppData\Local\Temp\VB135C.tmp'  and then Run-time error '-2147417848 (80010108)'  Method 'copy' of object 'Sheets' failed.    I don't know what is the cause of this problem and how to fix it. Thank you

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Anonymous
    2018-03-04T01:38:36+00:00

    Is it happening with files or only with this particular file?

    Only this files and sometimes

    Was this answer helpful?

    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2018-03-03T08:45:51+00:00

    Hard to guess what might be the cause for this issue. Reboot your PC and run chkdsk.
    https://technet.microsoft.com/en-us/library/ee8...

    Then go into that temp directory and delete all files.

    Check also other temp directory on your system and clean them (there are tools available that helps e.g. CCleaner)

    Check the free space on your hard disk.

    Andreas.

    Was this answer helpful?

    0 comments No comments
  3. Vijay A. Verma 104.8K Reputation points Volunteer Moderator
    2018-03-03T07:57:19+00:00

    Is it happening with files or only with this particular file?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-03-03T07:05:38+00:00

    The most likely cause of this error, in general, is that one of the sheet names is incorrect. So, please check it.

    If this doesn't solve your issue, I would like to debug your code as there can be other sources of errors also.

    Note - Select statement is redundant. No need for that.

    I need to have a look on your workbook to provide you the right solution.

    Request you to please prepare and upload a sample / dummy file sans confidential / sensitive data to Onedrive and share the link? It will help me to give prompt and high quality solution.

    Dear eforexcel.com 

    Thank you for your prompt reply. Even I select multiple sheets by not using macro, it's also error.

    File not found, 'C:\Users\Boonle\AppData\Local\Temp\VB135C.tmp'

    Thank you

    Was this answer helpful?

    0 comments No comments
  5. Vijay A. Verma 104.8K Reputation points Volunteer Moderator
    2018-03-03T04:47:32+00:00

    The most likely cause of this error, in general, is that one of the sheet names is incorrect. So, please check it.

    If this doesn't solve your issue, I would like to debug your code as there can be other sources of errors also.

    Note - Select statement is redundant. No need for that.

    I need to have a look on your workbook to provide you the right solution.

    Request you to please prepare and upload a sample / dummy file sans confidential / sensitive data to Onedrive and share the link? It will help me to give prompt and high quality solution.

    Was this answer helpful?

    0 comments No comments