Hi Sydney. I typed the code as stated and ran it from VB editor via the run command. The code ran but the defined names with the ref errors are still there in the name manager. I can't delete them thru that because the edit and delete buttons are not enabled.
There are some sheets in the worksheet that are and some that are not. Would that make a difference? The ranges are not valid anymore since I deleted the sheets they were assigned to a while ago (like a Rookie,eh).
It might make a difference. Check to see which sheets those invalid names refer to.
If the protected ones are the problem you will need to unprotect, clean the names, then reprotect.
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.