David Bussell
New Member
- Joined
- Jun 2, 2009
- Messages
- 22
I been looking for a way to limit the macro to just remove names within a single sheet and have just tried out the solution from lionpants. But it doesn't seem to work for me. By using workbooks, all names are deleted. When I use activesheet the macro runs, but no names are deleted.
any ideas?
Sub ByeByeNamedRanges()
Dim nm As Name
On Error Resume Next
For Each nm In ActiveSheet.Names
nm.Delete
Next
On Error GoTo 0
End Sub
<!-- / message -->
any ideas?
Sub ByeByeNamedRanges()
Dim nm As Name
On Error Resume Next
For Each nm In ActiveSheet.Names
nm.Delete
Next
On Error GoTo 0
End Sub
<!-- / message -->