Disable Range Name Conflict Message

MikeWard100

New Member
Joined
Jun 4, 2009
Messages
10
Problem:
I have a macro that deletes yesterday's worksheets and copy's in today's version. I'm adding about 90 worksheets. Upon each worksheet addition, I get a message reading...

"A formula or sheet you want to move or copy contains the name "abcdef" which already exists in the destination worksheet. Do you want to used this version of the name?" I have to select "Yes" or "No".

For this macro, the answer is always "Yes". To execute the macro, I hold down the "Y" key for about 6 minutes while the macro completes.

Questions:
Is there a way I can either disable the dialog box, or program the macro to answer "Yes" for all worksheets?
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Code:
Application.EnableAlerts = False
 
Upvote 0
Hi guys, I have the same problem as above.

I have tried the "Application.EnableAlerts = False" code, but I still get the same message.

Can you tell me where I need to place this code?

Is it a combination of "False" and "True" similar to the "Application.ScreenUpdating = True/False" scenario?
 
Upvote 0
It's actually:
Code:
Application.DisplayAlerts = False
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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