FracinDean
Board Regular
- Joined
- Jul 11, 2011
- Messages
- 110
- Office Version
- 365
- Platform
- Windows
Mr. Excel Forum Members, The following works but I would rather use something that tests to determine if the named range exists, and then delete it only when it does. I prefer to minimize the use of "On Error Resume Next". What is the syntax to test for the existence of the named range "AllRanges"?
VBA Code:
On Error Resume Next
ActiveWorkbook.Names("AllRanges").Delete