Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Delete "Unused names" in a batch

Hi,

my excel sheet has 100s of unused names that I would like to delete
automatically. THere are also a range of hidden unused names which are not
visible in the regular Insert - Name - Define.

Quick help would be much appreciated

Regards
Dieter
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Delete "Unused names" in a batch

If you're working with names, get Jan Karel Pieterse's (with Charles Williams
and Matthew Henson) Name Manager:

You can find it at:
NameManager.Zip from http://www.oaltd.co.uk/mvp

Remember that just because you don't see the name used in a worksheet, doesn't
mean it's not used in any code.

D0306 wrote:

Hi,

my excel sheet has 100s of unused names that I would like to delete
automatically. THere are also a range of hidden unused names which are not
visible in the regular Insert - Name - Define.

Quick help would be much appreciated

Regards
Dieter


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Delete "Unused names" in a batch

Dave,

I used the version 4.0, however, in order to delete the unused names, the
tool requires to rename them individualy. It says that the name is "unusable"
and the next pop up states "Name cannot resemble a reference" and it requires
a new name. So, given the huge number, this is also rather cumbersome. Or do
I miss something in the tool?

I found some VB coding, which lists the unused names, however, my coding
know how is too limited in order to change it so that deleted them, too.

***********************
Sub ShowNames()
i = 1
For Each nm In ActiveWorkbook.Names
Cells(i, 1).Value = nm.Name
Cells(i, 2).Value = nm.RefersTo
Cells(i, 3).Value = nm.Visible
i = i + 1
ActiveWorkbook.Names(nm.Name).Delete
Next
End Sub
********************************

Regards
Dieter



"Dave Peterson" wrote:

If you're working with names, get Jan Karel Pieterse's (with Charles Williams
and Matthew Henson) Name Manager:

You can find it at:
NameManager.Zip from http://www.oaltd.co.uk/mvp

Remember that just because you don't see the name used in a worksheet, doesn't
mean it's not used in any code.

D0306 wrote:

Hi,

my excel sheet has 100s of unused names that I would like to delete
automatically. THere are also a range of hidden unused names which are not
visible in the regular Insert - Name - Define.

Quick help would be much appreciated

Regards
Dieter


--

Dave Peterson

Reply
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
Batch Job "Text to column" in excel jjc Excel Discussion (Misc queries) 3 December 13th 06 04:21 PM
Batch Job "Text to column" in excel jjc Excel Discussion (Misc queries) 2 December 12th 06 07:50 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 08:50 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"