ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   macro to delete all named ranges in a workbook en masse? (https://www.excelbanter.com/excel-discussion-misc-queries/117432-macro-delete-all-named-ranges-workbook-en-masse.html)

Dave F

macro to delete all named ranges in a workbook en masse?
 
Anyone have a quick macro I can use that deletes all named ranges in a macro
en masse?

Thanks,

Dave
--
Brevity is the soul of wit.

T Kirtley

macro to delete all named ranges in a workbook en masse?
 
Dave,

Something like the following should work:

Sub RemoveNames()
Dim nme As Variant
For Each nme In ActiveWorkbook.Names
nme.Delete
Next nme
End Sub


HTH

TK

"Dave F" wrote:

Anyone have a quick macro I can use that deletes all named ranges in a macro
en masse?

Thanks,

Dave
--
Brevity is the soul of wit.



All times are GMT +1. The time now is 11:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com