Error when copying or moving a sheet, name already exist

%3CLINGO-SUB%20id%3D%22lingo-sub-1631342%22%20slang%3D%22en-US%22%3EError%20when%20copying%20or%20moving%20a%20sheet%2C%20name%20already%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1631342%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20do%20i%20do%20when%20yes%20to%20all%20does%20not%20appear%3F%20I%20feel%20like%20i%20have%20clicked%20a%20million%20yes%20already%20and%20the%20message%20is%20still%20showing%20up.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Kaydeann_1-1599133582376.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F216292i11394230F88E19DB%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22Kaydeann_1-1599133582376.png%22%20alt%3D%22Kaydeann_1-1599133582376.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1631342%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1631385%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20copying%20or%20moving%20a%20sheet%2C%20name%20already%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1631385%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F780781%22%20target%3D%22_blank%22%3E%40Kaydeann%3C%2FA%3E%2C%3C%2FP%3E%3CP%3EClick%20%22No%22%20give%20your%20sheet%20a%20different%20name%2C%20go%20back%20to%20the%20conflicting%20sheet%2C%20delete%20or%20rename%20it%2C%20and%20then%20rename%20the%20sheet%20you%20were%20trying%20to%20copy.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1631601%22%20slang%3D%22en-US%22%3ERe%3A%20Error%20when%20copying%20or%20moving%20a%20sheet%2C%20name%20already%20exist%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1631601%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F703724%22%20target%3D%22_blank%22%3E%40Bennadeau%3C%2FA%3E%26nbsp%3B%2C%20Thank%20you%20for%20responding.%20When%20I%20hit%20No%2C%20its%20like%20i%20have%20to%20rename%20all%20the%20items%20that%20excel%20is%20saying%20already%20exist.%20That%20is%20going%20create%20more%20work%20for%20me.%20Is%20there%20another%20way%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

What do i do when yes to all does not appear? I feel like i have clicked a million yes already and the message is still showing up.

 

Kaydeann_1-1599133582376.png

 

7 Replies

Hi @Kaydeann,

Click "No" give your sheet a different name, go back to the conflicting sheet, delete or rename it, and then rename the sheet you were trying to copy.

@Bennadeau , Thank you for responding. When I hit No, its like i have to rename all the items that excel is saying already exist. That is going create more work for me. Is there another way?

@Kaydeann 

How did you get there and what are you trying to achieve exactly? Sounds like you're duplicating all the sheets in a workbook within that same workbook? 

@Bennadeau, I am moving the sheet from one workbook to the next, but the workbook i am moving the sheet to has a similar sheet.

@Kaydeann 

I see... can you delete the sheet in the destination workbook before moving these?

You could use VBA to do that operation if you have to do this often. I'm sure there's a way to force the operation in the code without confirmation prompt. (equivalent to "Yes to All"). Let me know if it's a recurring thing, I'll try to dig up a code for you. If it's a one time thing, I suggest you stick with deleting before copying.

@Bennadeau I need the other sheet in the workbook so i can't delete before copying. I need to find a way to get the "yes to all" as i am copying similar sheets into the workbook.

@Kaydeann 

Didn't mean to delete the whole workbook, just the sheets you won't need.

Say you have source.xlsx and destination.xlsx

Both have the following sheet: sheet1, sheet2 and sheet3

You want to copy only sheet1 and sheet2 from source.xlsx to destination.xlsx

In destination.xlsx, delete sheet1 and sheet2

From source.xlsx, copy sheet1 and sheet2 to destination.xlsx

That way, sheet3 in destination.xlsx will remain untouched.

 

Would that work?