I'm trying to write a short bit of code to delete all named ranges in a workbook EXCEPT the system-generated named range for Print_Area.
I've had some suggestions from Dave at Ozgrid (thanks Dave for your good suggestions)... but no perfect solution.
Used Instr(.. "Ref!")>0 but only deletes named ranges with Ref!
Used If nName.Name <> "Print_Area" but doesn't prevent Print_Area from being deleted.
Used nName.Visible = False but that didn't appear to delete any named ranges.
.. your help would be most appreciated!!
Cheers