LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default Delete cell names

give this a try

Sub remove_bad_ranges()
Dim nm As Name
On Error Resume Next
For Each nm In ThisWorkbook.Names
If InStr(1, Range(nm).Address, "#REF") Then
nm.Delete
End If
Next
End Sub


--


Gary


"René" wrote in message
...
Hello,

In a workbook I deleted a lot of sheets. But on these sheets there were a
lot of cell names. These cell names still exist in the workbook, but of
course there's no reference anymore.
Is there an easy way to delete these unreferenced cell names?

Greetings
René



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Table Names Treasur2 New Users to Excel 2 July 28th 08 09:51 PM
Delete cell names on complete workbook deacs Excel Discussion (Misc queries) 2 February 23rd 06 11:43 AM
Delete names Meme Excel Programming 3 April 7th 04 10:35 PM
Delete names in workbook U. Kõrsmaa Excel Programming 6 February 8th 04 08:37 PM
DELETE NAMES gus Excel Programming 5 September 22nd 03 06:35 PM


All times are GMT +1. The time now is 10:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"