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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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