Name Manager

Utterly Bamboozled

New Member
Joined
Jul 7, 2010
Messages
39
Can someone please help me unlock the mystery of the Name Manager?

I appreciate the Name Manager will include all names from all open workbooks, but in a workbook I've been working in there are names from models I haven't used in months and I can't seem to get rid of them.

Moreover, when I copy a sheet from one workbook to another (both being open), Excel tells me a name (that only exists in the destination workbook) already exists and do I want to use the definition of that name - i.e. the name Excel quotes has not been used in the sheet being copied across, nor in the source workbook.

I have tried some code to remove any names in the source worksheet before copying, but it hasn't done anything.

Thanks for any help!

UB
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
there are names from models I haven't used in months and I can't seem to get rid of them.
What have you done to try? What happens?
 
Upvote 0
shg, with reference to names from models I haven't used in months I simply delete them but upon saving and re-opening they re-appear.

With reference to deleting names prior to copying to another workbook, I have tried:

For Each nm In Names
If nm.Parent.Name = ActiveSheet.Name Then nm.Delete
Next nm

Thanks for any help!
 
Upvote 0
Code:
Sub x()
    Dim oName As Name
    
    For Each oName In ActiveSheet.Names
        oName.Delete
    Next oName
End Sub
See the link in your other thread about removing names from worksheets that have apostrophes in their names.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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