Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a lot of range names in my workbook. After some
time, some of them no longer point anywhere, and I'd like to delete them. I cannot do this manually since the broken range names do not show up under Insert/Name/Define. I would like to write a simple loop that works as follows: For Each nm In ActiveWorkbook.Names <If nm is broken then delete nm Next Can someone please help me fill in the missing line. Thanks in advance Ray Kanner |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each nm In ActiveWorkbook.Names
if instr(nm.Refersto,"#") then nm.Delete end if Next -- Regards, Tom Ogilvy "Ray Kanner" wrote in message ... I have a lot of range names in my workbook. After some time, some of them no longer point anywhere, and I'd like to delete them. I cannot do this manually since the broken range names do not show up under Insert/Name/Define. I would like to write a simple loop that works as follows: For Each nm In ActiveWorkbook.Names <If nm is broken then delete nm Next Can someone please help me fill in the missing line. Thanks in advance Ray Kanner |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting invisible range names - how? | Excel Discussion (Misc queries) | |||
Restoring formulas after deleting range names | Excel Worksheet Functions | |||
deleting names from the name box | Excel Discussion (Misc queries) | |||
deleting worksheets from names in a range | Excel Discussion (Misc queries) | |||
Adding and deleting Range Names | Excel Programming |