How do you delet all the defined range names in a excel file

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

Guest

I working with a file that has around 400 defined ranges and I would like to
know if there is a vba command that delete all the ranges quiclkly

Thanks
 
Hi

consider

Dim n As Name

For Each n In ThisWorkbook.Names
n.Delete
Next
 

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