Running macro gives "xyz file named already exist. Do you want to replace ?"

shaikhstonevilla

New Member
Joined
Dec 5, 2012
Messages
23
Hi Guys,

I am running macro which prepares report for me from excel and save file it in csv format at the specific path.

Now my problem is that while saving the file, it give me pop up "xyz file named already exist. Do you want to replace it ?"
Surprisinlgy, no any file exist with the xyz file name at the that path.

More, if i change the path in macro to save the file at different location and re-run the macro, it also gives me the same pop up. :(


If anybody have the solution, it would be great help.


Regards,
Shaikhstonevilla
 
Last edited:

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
It would be helpful to see your code. It might be that your code is actually trying to save the file twice, so the second time around it recognizes that the file already exists.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,217,410
Messages
6,136,466
Members
450,014
Latest member
MShanDen

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