Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code which deletes all Range Names in a Workbook.
How would I delete all except for 1 Range Name called "MyUsers" For Each nName In ActiveWorkbook.Names nName.Delete Next Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
For Each nName In ActiveWorkbook.Names
If nName.Name < "MyUsers" Then nName.Delete End If Next - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "Sean" wrote in message oups.com... I have the following code which deletes all Range Names in a Workbook. How would I delete all except for 1 Range Name called "MyUsers" For Each nName In ActiveWorkbook.Names nName.Delete Next Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Jon
Jon Peltier wrote: For Each nName In ActiveWorkbook.Names If nName.Name < "MyUsers" Then nName.Delete End If Next - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions http://PeltierTech.com _______ "Sean" wrote in message oups.com... I have the following code which deletes all Range Names in a Workbook. How would I delete all except for 1 Range Name called "MyUsers" For Each nName In ActiveWorkbook.Names nName.Delete Next Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
delete multiple range names | Excel Discussion (Misc queries) | |||
How to Delete blanks between a range and populate only the names inthe given range | Excel Discussion (Misc queries) | |||
Code to Delete Range Names | Excel Programming | |||
delete non-used range names | Excel Programming | |||
Delete Specific Range Names | Excel Programming |