How can I delete all named ranges in a workbook or worksheet?
Sub test()
Dim ws As Worksheet
Dim nm As Name
For Each ws In Worksheets
For Each nm In ws.Names
nm.Delete
Next nm
Next ws
End Sub
"AZSteve" wrote:
I have 5-15 sheets in a workbook and I want to delete all the names (25 or
so) in each sheet in the workbook. I have not figured out a way to do this
reliably yet with a macro. Then I need to do it again on the next workbook.
Suggestions?
|