![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Aug 2002
Location: St Albans
Posts: 130
|
I have recorded a macro that can delete specific Define Names
(ActiveWorkbook.Names(####).Delete) but as there are multiple and varying Names Defined in the sheets I am trying to amalgamate I wanted to create a generic one to delete all of them. Is this possible? Thanks in advance, James |
|
|
|
|
|
#2 |
|
Join Date: Feb 2002
Posts: 47
|
Sub DeleteAllNames()
Dim x% For x = ActiveWorkbook.Names.Count To 1 Step -1 Range(ActiveWorkbook.Names(x).Name).Name.Delete Next End Sub |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Jul 2002
Location: Lincolnshire, UK
Posts: 812
|
Hi
If you download the asap addin from www.asap-utilities,com there is a utility in the Range Menu to let you delete range names in a selection or the whole Workbook |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|