PC Review


Reply
Thread Tools Rate Thread

Delete all Range Names Q

 
 
Seanie
Guest
Posts: n/a
 
      11th Jan 2009
How could I delete all Range Names in the activework book?

 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      11th Jan 2009
This macro should do that...

Sub DeleteAllNamesInActiveWorkbook()
Dim N As Name
For Each N In ActiveWorkbook.Names
N.Delete
Next
End Sub

--
Rick (MVP - Excel)


"Seanie" <(E-Mail Removed)> wrote in message
news:f7907d35-f5f4-4d53-aecd-(E-Mail Removed)...
> How could I delete all Range Names in the activework book?
>


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      11th Jan 2009
Sub DeleteNames()
Dim nme As Name

For Each nme In ActiveWorkbook.Names
If nme.Name Like "*_FilterDatabase" Or _
nme.Name Like "*Print_Area" Or _
nme.Name Like "*Print_Titles" Or _
nme.Name Like "*wvu.*" Or _
nme.Name Like "*wrn.*" Or _
nme.Name Like "*!Criteria" Then
Else
nme.Delete
End If
Next nme

End Sub

--
__________________________________
HTH

Bob

"Seanie" <(E-Mail Removed)> wrote in message
news:f7907d35-f5f4-4d53-aecd-(E-Mail Removed)...
> How could I delete all Range Names in the activework book?
>



 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      11th Jan 2009
I think I like Bob's macro better than mine so I would use it instead.

--
Rick (MVP - Excel)


"Rick Rothstein" <(E-Mail Removed)> wrote in message
news:%23lms%(E-Mail Removed)...
> This macro should do that...
>
> Sub DeleteAllNamesInActiveWorkbook()
> Dim N As Name
> For Each N In ActiveWorkbook.Names
> N.Delete
> Next
> End Sub
>
> --
> Rick (MVP - Excel)
>
>
> "Seanie" <(E-Mail Removed)> wrote in message
> news:f7907d35-f5f4-4d53-aecd-(E-Mail Removed)...
>> How could I delete all Range Names in the activework book?
>>

>


 
Reply With Quote
 
Seanie
Guest
Posts: n/a
 
      11th Jan 2009
Thanks Guys
 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      11th Jan 2009
I'd get a copy of 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

Seanie wrote:
>
> How could I delete all Range Names in the activework book?


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Delete blanks between a range and populate only the names inthe given range Yuvraj Microsoft Excel Misc 2 4th Nov 2009 08:32 PM
Delete all Range Names Except for 1 Q Sean Microsoft Excel Programming 2 16th Jan 2007 04:27 PM
delete non-used range names =?Utf-8?B?VHhSYWlzdGxpbg==?= Microsoft Excel Programming 3 19th Jul 2006 09:05 AM
Delete Specific Range Names Larry Microsoft Excel Programming 3 22nd Dec 2003 09:48 PM
How do I delete ExternalRata range names? Nathan Gutman Microsoft Excel Programming 2 18th Dec 2003 09:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:54 PM.