Deleting Names from a Different Workbook

Utterly Bamboozled

New Member
Joined
Jul 7, 2010
Messages
39
Hi guys,

Having some trouble deleting defined names from my workbook which were actually created in an entirely different project!

1) How the hell did they even get in there (pretty sure the workbooks weren't open at the same time)?

2) Why can I not delete them - the delete button is greyed out.

I thought it may have been because either the workbook or worksheet containing the defined name was protected, but this didn't work.

Thanks for any help!

UB
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi guys,

Having some trouble deleting defined names from my workbook which were actually created in an entirely different project!

1) How the hell did they even get in there (pretty sure the workbooks weren't open at the same time)?

2) Why can I not delete them - the delete button is greyed out.

I thought it may have been because either the workbook or worksheet containing the defined name was protected, but this didn't work.

Thanks for any help!

UB


Don't know what version you are using, but in 2007, the Name Manager delete button is greyed out until the range is clicked on, or highlighted if you are using the arrow keys to navigate. But if all else fails, try VBA code:

Sample Code:
Sub delName()
Range("B4:B10").Name.Delete
End Sub
Code:
 
Upvote 0
Need to get the VBA syntax right.

Instead of Range("B4:B10").Name.Delete

Use this:

ActiveWorkbook.Names("type the range name in here"<TYPE here quotes in name range the>).Delete
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,925
Members
449,056
Latest member
denissimo

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