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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top