View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] barberboy@gmail.com is offline
external usenet poster
 
Posts: 5
Default Macro to delete names except Print_Area

I have a macro that deletes all of the named ranges in my workbook. The
problem is that it also deletes the "Print_Area" range, which results
in resetting my print area.

Is there a way to modify this so that it will keep my old print area?

Sub DeleteNames()
'
' Gets rid of all named ranges
'
For Each nName In Names
nName.Delete
Next
'
End Sub