Delete all defined named ranges from a selection

gaudrco

Board Regular
Joined
Aug 16, 2019
Messages
203
Is there a way to delete all named ranges from a selection? Here is the selection that I am trying to delete the named ranged from:
Code:
Range("CompOverviewTable[[#Headers],[Competitor_one]]").Select
    Range(Selection, Selection.End(xlToRight)).Offset(-1, 0).Select
 
but those cells have a defined name (range)

Can you explain further by providing one example

1. what is the NAME of the named range in cell immediately above Competitor_one
2. what is the RefersTo formula for that named range



-
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
1. The name of the named range above Competitor_one is "Competitor_one". When each named range is created, it takes the name of the cell below it.
2. The RefersTo formula refers to the cell itself. So for the named range above "Competitor_one", the RefersTo= 'Competitor Overview Data'!$E$3

For "Competitor_two", RefersTo='Competitor Overview Data'!$F$3
For "Competitor_three" RefersTo='Competitor Overview Data'!$G$3
For "Competitor_four" RefersTo='Competitor Overview Data'!$H$3
.. and so on
 
Upvote 0
Any other ideas for deleting all defined name ranges in a selection ("3:3") on sheet ("Competitor Overview Data")?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,205
Members
448,554
Latest member
Gleisner2

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