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

"Mark" wrote in message
...
I am using EXCEL 97.
I have a worksheet with numerous names defined and I want to delete them
all, can some assist with some code which I can use to do this, please?


Hi Mark,

Here's one way to do it. Note that this procedure deletes all defined
names in the currently active workbook, not just names specific to a single
sheet, but I figured that was what you were looking for.

Sub DeleteAllNames()
Dim objName As Excel.Name
For Each objName In ActiveWorkbook.Names
objName.Delete
Next objName
End Sub

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



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
Deleting Multiple Names TomCat Excel Discussion (Misc queries) 6 September 26th 09 12:14 PM
deleting names from the name box Amy C Excel Discussion (Misc queries) 4 May 12th 06 11:00 AM
deleting duplicate names torbau Excel Discussion (Misc queries) 0 March 8th 06 04:59 PM
Deleting range names CiaraG[_4_] Excel Programming 1 May 10th 04 04:39 PM
Deleting workbook names w/ VB Big-E Excel Programming 6 April 28th 04 07:01 PM


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