Sub Test()
For Each nam In ActiveWorkbook.Names
a = nam.Name
b = Replace(nam.RefersToRange.Address, "$", "")
For Each ws In ActiveWorkbook.Worksheets
Cells.Replace What:="" & a & "", Replacement:="" & b & "", LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
Next ws
nam.Delete
Next nam
End Sub