Moving or Copying tab error messages

Katstang

Board Regular
Joined
Jan 13, 2005
Messages
85
I am hoping someone can explain why I am getting an error message when I copy a tab. I have attached the message. I have to click the "YES" button it seems like a hundred times for the command message to go away. What causes this? What is the fix? Clicking No is not an option either. Thanks in advance to anyone that can help me out. :)
 

Attachments

  • Copying Message.JPG
    Copying Message.JPG
    23.9 KB · Views: 9

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
If you put in your code at the top...

VBA Code:
Application.EnableEvents = false
Application.DisplayAlerts = false

and then at the bottom

VBA Code:
Application.EnableEvents = true
Application.DisplayAlerts = true
 
Upvote 0
VBE313, Not sure that I am following your solution. I am not running any codes in the file that I am working in.
 
Upvote 0
You are getting that message because the sheet you are copying contains a named range that is workbook scope.
 
Upvote 0
It really depends on how those names are being used.
One way would be delete them & then re-create them with worksheet scope, but that may require a lot of work to get the workbook working again.
 
Upvote 0
Solution
For my workbook, I think I will just delete the "Named Ranges". Did some further research and I have no formulas that can be damaged by using "Named Ranges". Thanks for the assistance.
 
Upvote 0
You're welcome & thanks for the feedback.

For safety I would recommend creating an archive copy, before deleting the names, just in case.
 
Upvote 0

Forum statistics

Threads
1,215,563
Messages
6,125,554
Members
449,237
Latest member
Chase S

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