Macro Suddenly starts giving error

wouldbeca

Board Regular
Joined
Aug 31, 2014
Messages
51
Hi All,

I am using a macro for last one and half year for creating a report to be sent to the user, but suddenly from yesterday, it started giving me error " File Not Found 'C:Users\31946450\AppData\Local\Temp\VBCE74.tmp . I had not changed anything in the configuration of the system or excel either. Not able to understand reasons for this error as I am using this file for a quite a while now.

Exact place where error is coming:-

Code:
selsheet.Activate
Sheets("Summary").Select
Sheets("Summary").Copy After:=Workbooks(Aname & ".xlsx").Sheets("Sheet1")

There are 6 files which are being copied like this. and error comes or not comes at any fixed file comes come randomly in some of them. In case I debug, it continues in a single click or multiple clicks but creates a blank file in that sheet.
Any help is really appreciable
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
have you cleared out your temp folders / wastebin and restarted

any updates done recently

how many pages in that workbook currently
 
Upvote 0
1. I cleared temp but the problem remained.

2. No update. it worked perfectly well the day before yesterday. Yesterday, the error came once, I restarted excel and it worked well afterwards. But today it failed to work.

3. By pages you meant sheets?..Total of 12 sheets in the master workbook. Out of which, 6 sheets ( 3 of them having data tables, move to a new workbook.

have you cleared out your temp folders/wastebin and restarted

any updates done recently

how many pages in that workbook currently
 
Upvote 0
Is there a sheet1, whereas sheet(1) might be better ?. There must be loads of reasons, these would be my first looks
 
Upvote 0
Happy new year...Thanks for the help but not really helpful. As I said earlier, the code was working fine for last 1 and half year and suddenly it started giving the problem. So I don't think the problem would be much with code. it needs to be something else.

Is there a sheet1, whereas sheet(1) might be better ?. There must be loads of reasons, these would be my first looks
 
Upvote 0
one final thought, you are not opening a copy in outlook are you?, this is a file that resides in the desktop or else
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top