tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Everyone,
I have this macro that removes all name ranges from a document,
it works great
but I would like to keep one called "Control1"
can anyone edit it so "Control1" is not removed
Thanks
Tony
I have this macro that removes all name ranges from a document,
it works great
but I would like to keep one called "Control1"
can anyone edit it so "Control1" is not removed
Thanks
Tony
Code:
[COLOR=#000000][FONT=verdana]Option Explicit
Sub RemNamedRanges()
Dim nm As Name
On Error Resume Next
For Each nm In ActiveWorkbook.Names
nm.Delete
Next
On Error Goto 0
End Sub [/FONT][/COLOR]