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

I suspect the reason Chip's routine didn't work for you is
because the names "Print_Area" and "Print_Titles" are
reserved for use with Print setup. These become defined as
worksheet level names, even if you didn't explicitly
create as such. So these names would always exist like
this:

"Sheet1!Print_Area"

Apart from this the basic principle of Chip's sub is, of
course, correct.

Regards,
Peter


-----Original Message-----
Norman's macro works - removes all name ranges, except

for Print_Area
and Print_Titles

Sub RemoveNamesAll() ' change name AllExceptPrint
Dim N As Name
For Each N In ActiveWorkbook.Names
If Not N.Name Like "*Print_*" Then
N.Delete
End If
Next N
End Sub

Course one can modify the ...Like "*Print_"... to keep

other name
ranges.


Chip - your macro still deleted all names ranges, the

Print name ranges
included. So it does not fill ny need.

Thanks for replying

Don Bolstad K9DEB


---
Message posted from http://www.ExcelForum.com/

.

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
Removing labels and names in formulas Eleazar Excel Discussion (Misc queries) 3 July 11th 06 12:03 AM
Finding/removing duplicate names in a worksheet Dave Excel Worksheet Functions 1 April 17th 06 08:05 PM
Removing range names. Laurence Lombard Excel Discussion (Misc queries) 2 February 28th 06 09:24 AM
removing and inserting duplicate names gerrior New Users to Excel 1 September 12th 05 02:14 AM
Removing Duplcate Names Dave Y Excel Worksheet Functions 4 April 8th 05 06:26 PM


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