Deleting All Range Names

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there an easy way to delete a group of range names or all the range names
in a sheet at one time? The only way that I am aware of is to delete each
range name separately.
 
Is there an easy way to delete a group of range names or all the range names
in a sheet at one time? The only way that I am aware of is to delete each
range name separately.

Sub DelAllRanges()
Dim rngRange As Name
For Each rngRange In ActiveWorkbook.Names
rngRange.Delete
Next rngRange
End Sub
 
or try this
Sub DeleteAllNames_Umlas()
ExecuteExcel4Macro "SUM(DELETE.NAME(NAMES()))"
End Sub
 
Back
Top