Named Ranges still there after worksheet is deleted

nyconfidential

New Member
Joined
Jul 22, 2015
Messages
49
Office Version
  1. 365
  2. 2016
Hi all - I have a worksheet that contains about 20 WORKSHEET scoped named ranges. Normally, when I delete a sheet with worksheet level named ranges, the named ranges are automatically removed. When I delete this particular sheet - the named ranges are still there - but they are turned into WORKBOOK scoped named ranges, all with a value of #REF . Anyone seen behavior like this before?

Here is how the named ranges look BEFORE the sheet is deleted:
https://imgur.com/a/bQUDf6s

Here is how the named ranges look AFTER the sheet is deleted:
https://imgur.com/a/nIbrcKm

Additionally, when I try to delete them grammatically in VBA(just looping through named ranges that have #REF as a value), it does not work(The code works fine normally), are these some sort of ghosts or something?

Thanks in advance.
 
Last edited:

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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