Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Howdy
Is there a way that I could create a macro to find and delete defined names that refer to #REF? I have over a 100 defined names in several workbooks that I need to delete. smiles Kay |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Kay,
Try something like the following code: Dim N As Excel.Name For Each N In ThisWorkbook.Names If InStr(1, "#REF", N.RefersTo) Then N.Delete End If Next N -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Kay" wrote in message ... Howdy Is there a way that I could create a macro to find and delete defined names that refer to #REF? I have over a 100 defined names in several workbooks that I need to delete. smiles Kay |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why use defined names? | Excel Discussion (Misc queries) | |||
defined names | Excel Worksheet Functions | |||
Defined names | Excel Worksheet Functions | |||
NAMES DEFINED | Excel Discussion (Misc queries) | |||
Defined names | Excel Discussion (Misc queries) |