I have workbook with multiple tabs on a worksheet. when I click the name manager nothing happens. How can I view all the names in the workbook and delete the selected names. I try using the macro blow but no luck.
Sub DelRefNames()
Dim n As Name
For Each n In ActiveWorkbook.Names
If InStr(n.RefersTo, "#REF!") Then
n.Delete
End If
Next n
End Sub
Also, I have links in the same workbook and would like to remove them. I tried breaking them but no luck.
Sub DelRefNames()
Dim n As Name
For Each n In ActiveWorkbook.Names
If InStr(n.RefersTo, "#REF!") Then
n.Delete
End If
Next n
End Sub
Also, I have links in the same workbook and would like to remove them. I tried breaking them but no luck.