Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Removing Defined Names

Hello,

I have numerous defined names in a spreadsheet that I would like to delete.
Is there a way I can delete more than one at a time? I know how to use
"Insert/Name/Define/Delete", but it only allows me to delete one at a time so
it is very slow. Thanks.

John
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 226
Default Removing Defined Names

Using a macro, like

Sub DeleteNames()
Dim Nm As Name
For Each Nm In ActiveWorkbook.Names
Nm.Delete
Next Nm
End Sub

which will delete all the names in your workbook. If you handle names
frequently, I'd recommend downloading the Name Manager, from he

http://www.jkp-ads.com/OfficeMarketPlaceNM-EN.htm


--
Regards

Juan Pablo González

"John M" wrote in message
...
Hello,

I have numerous defined names in a spreadsheet that I would like to

delete.
Is there a way I can delete more than one at a time? I know how to use
"Insert/Name/Define/Delete", but it only allows me to delete one at a time

so
it is very slow. Thanks.

John



  #3   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Removing Defined Names

use

sub removenames ()
on error resume next
yu = array("nameone","nametwo","namethree")
for h = 0 to NumberOfNamesToRemove - 1
activeworkbook.names(yu(h)).delete
next
end sub

where yu = array("nameone","nametwo","namethree") the names you wish to
delete are replaced with the appropriate names to remove
and for h = 0 to NumberOfNamesToRemove - 1 replace NumberOfNamesToRemove
with the amount of names you are removing



"John M" wrote:

Hello,

I have numerous defined names in a spreadsheet that I would like to delete.
Is there a way I can delete more than one at a time? I know how to use
"Insert/Name/Define/Delete", but it only allows me to delete one at a time so
it is very slow. Thanks.

John

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Removing Defined Names

The Names Manager utility, available here, is just what you need:

http://www.jkp-ads.com/Download.htm

--
Jim Rech
Excel MVP
"John M" wrote in message
...
| Hello,
|
| I have numerous defined names in a spreadsheet that I would like to
delete.
| Is there a way I can delete more than one at a time? I know how to use
| "Insert/Name/Define/Delete", but it only allows me to delete one at a time
so
| it is very slow. Thanks.
|
| John


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
Why use defined names? Eric Excel Discussion (Misc queries) 2 December 31st 07 06:07 AM
defined names xcel user[_2_] Excel Worksheet Functions 1 December 14th 07 05:43 PM
NAMES DEFINED F. Lawrence Kulchar Excel Discussion (Misc queries) 5 November 14th 06 07:54 AM
Defined names DREED Excel Discussion (Misc queries) 3 March 10th 06 02:55 PM
Using defined names in VBA... BeSmart Excel Programming 4 September 24th 04 10:11 AM


All times are GMT +1. The time now is 09:42 AM.

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"