![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 24
|
Ive taken over a file with work that has a lot of named cells and cell ranges. Is there any way to delete these names, either individually or collectively, and have their dependents continue to reference them correctly? Thanks in advance.
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
|
You may delete the names unde Insert>Names>Define. If you do, however, formulas that use the Names will no longre function. Suggest you do a Find and replace for each name first.
Find RangeName Replace with $A$1 |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Feb 2002
Location: Sheffield, UK
Posts: 249
|
As lenze so rightly says, you will probably need to do a find and replace on the formulas first. I can help you delete all the ranges at once though, with this bit of vb code:
Sub DeleteNamedRanges() For n = 1 To ActiveWorkbook.Names.Count ActiveWorkbook.Names(1).Delete Next n End Sub |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
May I ask why you want to replace Names with cell references?
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|