Hi all,
I'm wanting to delete all (about 60) the defined names within an excel workbook. I can delete the values of the defined names (end up with "=Sheet1!#REF!") with the below code, but not the name it's self even though I'm displaying it in the message box.
Thanks for your help
I'm wanting to delete all (about 60) the defined names within an excel workbook. I can delete the values of the defined names (end up with "=Sheet1!#REF!") with the below code, but not the name it's self even though I'm displaying it in the message box.
Code:
For Each n In ActiveWorkbook.Names
MsgBox n.Name
Range(n.Name).Delete
Next
Thanks for your help